pub struct TextMarkBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct TextMark
objects.
Implementations§
Source§impl TextMarkBuilder
impl TextMarkBuilder
Sourcepub fn left_gravity(self, left_gravity: bool) -> Self
pub fn left_gravity(self, left_gravity: bool) -> Self
Whether the mark has left gravity.
When text is inserted at the mark’s current location, if the mark has left gravity it will be moved to the left of the newly-inserted text, otherwise to the right.
Auto Trait Implementations§
impl Freeze for TextMarkBuilder
impl RefUnwindSafe for TextMarkBuilder
impl !Send for TextMarkBuilder
impl !Sync for TextMarkBuilder
impl Unpin for TextMarkBuilder
impl UnwindSafe for TextMarkBuilder
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