pub enum TextOffset {
Subscript,
Normal,
Superscript,
Undefined,
}Expand description
Text offset options
Variants§
Trait Implementations§
Source§impl Clone for TextOffset
impl Clone for TextOffset
Source§fn clone(&self) -> TextOffset
fn clone(&self) -> TextOffset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextOffset
impl Debug for TextOffset
Source§impl From<TextOffset> for u8
impl From<TextOffset> for u8
Source§fn from(text_offset: TextOffset) -> Self
fn from(text_offset: TextOffset) -> Self
Converts to this type from the input type.
Source§impl From<u8> for TextOffset
impl From<u8> for TextOffset
Source§impl Ord for TextOffset
impl Ord for TextOffset
Source§fn cmp(&self, other: &TextOffset) -> Ordering
fn cmp(&self, other: &TextOffset) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TextOffset
impl PartialEq for TextOffset
Source§impl PartialOrd for TextOffset
impl PartialOrd for TextOffset
impl Copy for TextOffset
impl Eq for TextOffset
impl StructuralPartialEq for TextOffset
Auto Trait Implementations§
impl Freeze for TextOffset
impl RefUnwindSafe for TextOffset
impl Send for TextOffset
impl Sync for TextOffset
impl Unpin for TextOffset
impl UnwindSafe for TextOffset
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