pub enum SelectionDirection {
None,
Forward,
Backward,
}Expand description
The direction a text selection was created in.
Variants§
None
The selection direction is unknown or directionless.
Forward
The focus is after the anchor.
Backward
The focus is before the anchor.
Trait Implementations§
Source§impl Clone for SelectionDirection
impl Clone for SelectionDirection
Source§fn clone(&self) -> SelectionDirection
fn clone(&self) -> SelectionDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectionDirection
Source§impl Debug for SelectionDirection
impl Debug for SelectionDirection
Source§impl Default for SelectionDirection
impl Default for SelectionDirection
Source§fn default() -> SelectionDirection
fn default() -> SelectionDirection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectionDirection
impl<'de> Deserialize<'de> for SelectionDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SelectionDirection
Source§impl Hash for SelectionDirection
impl Hash for SelectionDirection
Source§impl PartialEq for SelectionDirection
impl PartialEq for SelectionDirection
Source§impl Serialize for SelectionDirection
impl Serialize for SelectionDirection
impl StructuralPartialEq for SelectionDirection
Auto Trait Implementations§
impl Freeze for SelectionDirection
impl RefUnwindSafe for SelectionDirection
impl Send for SelectionDirection
impl Sync for SelectionDirection
impl Unpin for SelectionDirection
impl UnsafeUnpin for SelectionDirection
impl UnwindSafe for SelectionDirection
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.