pub struct TextMark {
pub id: MarkId,
pub byte: usize,
pub bias: Bias,
}Expand description
A point inside a TextBuffer that survives edits (GTK’s
GtkTextMark). The text_apply_edits mutator shifts marks during
insert/delete according to Self::bias.
Fields§
§id: MarkIdStable id.
byte: usizeCurrent byte offset; updated by the edit mutator.
bias: BiasInsertion-at-mark policy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextMark
impl RefUnwindSafe for TextMark
impl Send for TextMark
impl Sync for TextMark
impl Unpin for TextMark
impl UnsafeUnpin for TextMark
impl UnwindSafe for TextMark
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.