pub enum Stickiness {
AlwaysGrows,
NeverGrows,
GrowsBefore,
GrowsAfter,
}Expand description
How a decoration’s edges behave when text is typed exactly at them (Monaco’s names).
Variants§
AlwaysGrows
Text typed at either edge becomes part of the decoration.
NeverGrows
Text typed at an edge stays outside.
GrowsBefore
Text typed at the start is inside, at the end outside.
GrowsAfter
Text typed at the end is inside, at the start outside.
Trait Implementations§
Source§impl Clone for Stickiness
impl Clone for Stickiness
impl Copy for Stickiness
Source§impl Debug for Stickiness
impl Debug for Stickiness
Source§impl Default for Stickiness
impl Default for Stickiness
impl Eq for Stickiness
Source§impl PartialEq for Stickiness
impl PartialEq for Stickiness
impl StructuralPartialEq for Stickiness
Auto Trait Implementations§
impl Forget for Stickiness
impl Freeze for Stickiness
impl Move for Stickiness
impl RefUnwindSafe for Stickiness
impl Send for Stickiness
impl Sync for Stickiness
impl Unpin for Stickiness
impl UnsafeUnpin for Stickiness
impl UnwindSafe for Stickiness
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