#[repr(C)]pub struct InlineTextLine {
pub bounds: LogicalRect,
pub word_start: usize,
pub word_end: usize,
}Expand description
NOTE: The bounds of the text line is the TOP left corner (relative to the text origin), but the word_position is the BOTTOM left corner (relative to the text line)
Fields§
§bounds: LogicalRect§word_start: usizeAt which word does this line start?
word_end: usizeAt which word does this line end
Implementations§
Source§impl InlineTextLine
impl InlineTextLine
pub const fn new( bounds: LogicalRect, word_start: usize, word_end: usize, ) -> Self
Trait Implementations§
Source§impl Clone for InlineTextLine
impl Clone for InlineTextLine
Source§fn clone(&self) -> InlineTextLine
fn clone(&self) -> InlineTextLine
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 InlineTextLine
impl Debug for InlineTextLine
Source§impl Extend<InlineTextLine> for InlineTextLineVec
impl Extend<InlineTextLine> for InlineTextLineVec
Source§fn extend<T: IntoIterator<Item = InlineTextLine>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = InlineTextLine>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<InlineTextLine> for InlineTextLineVec
impl FromIterator<InlineTextLine> for InlineTextLineVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = InlineTextLine>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = InlineTextLine>,
Creates a value from an iterator. Read more
Source§impl PartialEq for InlineTextLine
impl PartialEq for InlineTextLine
Source§impl PartialOrd for InlineTextLine
impl PartialOrd for InlineTextLine
impl StructuralPartialEq for InlineTextLine
Auto Trait Implementations§
impl Freeze for InlineTextLine
impl RefUnwindSafe for InlineTextLine
impl Send for InlineTextLine
impl Sync for InlineTextLine
impl Unpin for InlineTextLine
impl UnwindSafe for InlineTextLine
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