#[repr(C)]pub struct InlineTextHit {Show 16 fields
pub unicode_codepoint: OptionChar,
pub hit_relative_to_inline_text: LogicalPosition,
pub hit_relative_to_line: LogicalPosition,
pub hit_relative_to_text_content: LogicalPosition,
pub hit_relative_to_glyph: LogicalPosition,
pub line_index_relative_to_text: usize,
pub word_index_relative_to_text: usize,
pub text_content_index_relative_to_text: usize,
pub glyph_index_relative_to_text: usize,
pub char_index_relative_to_text: usize,
pub word_index_relative_to_line: usize,
pub text_content_index_relative_to_line: usize,
pub glyph_index_relative_to_line: usize,
pub char_index_relative_to_line: usize,
pub glyph_index_relative_to_word: usize,
pub char_index_relative_to_word: usize,
}Fields§
§unicode_codepoint: OptionChar§hit_relative_to_inline_text: LogicalPosition§hit_relative_to_line: LogicalPosition§hit_relative_to_text_content: LogicalPosition§hit_relative_to_glyph: LogicalPosition§line_index_relative_to_text: usize§word_index_relative_to_text: usize§text_content_index_relative_to_text: usize§glyph_index_relative_to_text: usize§char_index_relative_to_text: usize§word_index_relative_to_line: usize§text_content_index_relative_to_line: usize§glyph_index_relative_to_line: usize§char_index_relative_to_line: usize§glyph_index_relative_to_word: usize§char_index_relative_to_word: usizeTrait Implementations§
Source§impl Clone for InlineTextHit
impl Clone for InlineTextHit
Source§fn clone(&self) -> InlineTextHit
fn clone(&self) -> InlineTextHit
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 InlineTextHit
impl Debug for InlineTextHit
Source§impl FromIterator<InlineTextHit> for InlineTextHitVec
impl FromIterator<InlineTextHit> for InlineTextHitVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = InlineTextHit>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = InlineTextHit>,
Creates a value from an iterator. Read more
Source§impl PartialEq for InlineTextHit
impl PartialEq for InlineTextHit
Source§impl PartialOrd for InlineTextHit
impl PartialOrd for InlineTextHit
impl Copy for InlineTextHit
impl StructuralPartialEq for InlineTextHit
Auto Trait Implementations§
impl Freeze for InlineTextHit
impl RefUnwindSafe for InlineTextHit
impl Send for InlineTextHit
impl Sync for InlineTextHit
impl Unpin for InlineTextHit
impl UnwindSafe for InlineTextHit
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more