pub enum EditorHitZone {
Text,
Gutter,
Outside,
}Expand description
Semantic editor area containing a hit point.
§Examples
use ailloli_ui_editor::EditorHitZone;
assert_ne!(EditorHitZone::Text, EditorHitZone::Gutter);Variants§
Text
Text viewport or padded content area.
Gutter
Enabled left gutter.
Outside
Outside the complete content rectangle.
Trait Implementations§
Source§impl Clone for EditorHitZone
impl Clone for EditorHitZone
Source§fn clone(&self) -> EditorHitZone
fn clone(&self) -> EditorHitZone
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorHitZone
impl Debug for EditorHitZone
Source§impl PartialEq for EditorHitZone
impl PartialEq for EditorHitZone
impl Copy for EditorHitZone
impl Eq for EditorHitZone
impl StructuralPartialEq for EditorHitZone
Auto Trait Implementations§
impl Freeze for EditorHitZone
impl RefUnwindSafe for EditorHitZone
impl Send for EditorHitZone
impl Sync for EditorHitZone
impl Unpin for EditorHitZone
impl UnwindSafe for EditorHitZone
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.