pub struct VisualInlineBox {
pub id: u64,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub line_baseline: Option<f32>,
pub kind: InlineBoxKind,
}Expand description
An inline box resolved to its painted position and size.
Fields§
§id: u64Index into the span list.
x: f32Left edge.
y: f32Top edge.
width: f32Box width.
height: f32Box height.
line_baseline: Option<f32>Baseline of the in-flow line that owns this box, relative to the inline formatting context’s content-box top edge.
kind: InlineBoxKindHow the box sits in its line.
Trait Implementations§
Source§impl Clone for VisualInlineBox
impl Clone for VisualInlineBox
impl Copy for VisualInlineBox
Auto Trait Implementations§
impl Forget for VisualInlineBox
impl Freeze for VisualInlineBox
impl Move for VisualInlineBox
impl RefUnwindSafe for VisualInlineBox
impl Send for VisualInlineBox
impl Sync for VisualInlineBox
impl Unpin for VisualInlineBox
impl UnsafeUnpin for VisualInlineBox
impl UnwindSafe for VisualInlineBox
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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