pub struct TextPosition<'a> { /* private fields */ }Implementations§
Source§impl<'a> Position<'a>
impl<'a> Position<'a>
pub fn to_raw(self) -> WeakPosition
pub fn inner_node(&self) -> &Node<'a>
pub fn is_format_start(&self) -> bool
pub fn is_word_start(&self) -> bool
pub fn is_line_start(&self) -> bool
pub fn is_line_end(&self) -> bool
pub fn is_paragraph_start(&self) -> bool
pub fn is_paragraph_end(&self) -> bool
pub fn is_paragraph_separator(&self) -> bool
pub fn is_page_start(&self) -> bool
pub fn is_document_start(&self) -> bool
pub fn is_document_end(&self) -> bool
pub fn to_degenerate_range(&self) -> Range<'a>
pub fn to_global_usv_index(&self) -> usize
pub fn to_global_utf16_index(&self) -> usize
pub fn to_line_index(&self) -> usize
pub fn biased_to_start(&self) -> Self
pub fn biased_to_end(&self) -> Self
pub fn forward_to_character_start(&self) -> Self
pub fn forward_to_character_end(&self) -> Self
pub fn backward_to_character_start(&self) -> Self
pub fn forward_to_format_start(&self) -> Self
pub fn forward_to_format_end(&self) -> Self
pub fn backward_to_format_start(&self) -> Self
pub fn forward_to_word_start(&self) -> Self
pub fn forward_to_word_end(&self) -> Self
pub fn backward_to_word_start(&self) -> Self
pub fn forward_to_line_start(&self) -> Self
pub fn forward_to_line_end(&self) -> Self
pub fn backward_to_line_start(&self) -> Self
pub fn forward_to_paragraph_start(&self) -> Self
pub fn forward_to_paragraph_end(&self) -> Self
pub fn backward_to_paragraph_start(&self) -> Self
pub fn forward_to_page_start(&self) -> Self
pub fn forward_to_page_end(&self) -> Self
pub fn backward_to_page_start(&self) -> Self
pub fn document_end(&self) -> Self
pub fn document_start(&self) -> Self
Source§impl<'a> Position<'a>
impl<'a> Position<'a>
pub fn text_direction(&self) -> Option<TextDirection>
pub fn font_family(&self) -> Option<&'a str>
pub fn language(&self) -> Option<&'a str>
pub fn font_size(&self) -> Option<f32>
pub fn font_weight(&self) -> Option<f32>
pub fn background_color(&self) -> Option<Color>
pub fn foreground_color(&self) -> Option<Color>
pub fn overline(&self) -> Option<TextDecoration>
pub fn strikethrough(&self) -> Option<TextDecoration>
pub fn underline(&self) -> Option<TextDecoration>
pub fn text_align(&self) -> Option<TextAlign>
pub fn vertical_offset(&self) -> Option<VerticalOffset>
Trait Implementations§
Source§impl PartialOrd for Position<'_>
impl PartialOrd for Position<'_>
impl<'a> Copy for Position<'a>
impl Eq for Position<'_>
Auto Trait Implementations§
impl<'a> Freeze for Position<'a>
impl<'a> RefUnwindSafe for Position<'a>
impl<'a> Send for Position<'a>
impl<'a> Sync for Position<'a>
impl<'a> Unpin for Position<'a>
impl<'a> UnwindSafe for Position<'a>
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