[−][src]Struct piet_common::LineMetric
Metadata about each line in a text layout.
Fields
start_offset: usizeIndex (in code units) of the start of the line, offset from the beginning of the text.
end_offset: usizeLine length (in UTF-8 code units), but offset from the beginning of the text. So it's the length of this line summed with the lengths of all the lines before it.
Includes trailing whitespace.
trailing_whitespace: usizeLength in (in UTF-8 code units) of current line's trailing whitespace.
baseline: f64Distance of the baseline from the top of the line
height: f64Line height
cumulative_height: f64Cumulative line height (includes previous line heights)
Trait Implementations
impl Clone for LineMetric[src]
fn clone(&self) -> LineMetric[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for LineMetric[src]
impl Default for LineMetric[src]
fn default() -> LineMetric[src]
impl PartialEq<LineMetric> for LineMetric[src]
fn eq(&self, other: &LineMetric) -> bool[src]
fn ne(&self, other: &LineMetric) -> bool[src]
impl StructuralPartialEq for LineMetric[src]
Auto Trait Implementations
impl RefUnwindSafe for LineMetric
impl Send for LineMetric
impl Sync for LineMetric
impl Unpin for LineMetric
impl UnwindSafe for LineMetric
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> RoundFrom<T> for T[src]
fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,
fn round_into(self) -> U[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,