Enum cosmic_text::Affinity
source · pub enum Affinity {
Before,
After,
}
Expand description
Whether to associate cursors placed at a boundary between runs with the run before or after it.
Variants§
Implementations§
Trait Implementations§
source§impl Ord for Affinity
impl Ord for Affinity
source§impl PartialEq for Affinity
impl PartialEq for Affinity
source§impl PartialOrd for Affinity
impl PartialOrd for Affinity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Affinity
impl Eq for Affinity
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl RefUnwindSafe for Affinity
impl Send for Affinity
impl Sync for Affinity
impl Unpin for Affinity
impl UnwindSafe for Affinity
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