pub struct LayoutOutput {
pub positions: BTreeMap<usize, LogicalPosition>,
pub overflow_size: LogicalSize,
pub baseline: Option<f32>,
}Expand description
The result of laying out a formatting context.
Fields§
§positions: BTreeMap<usize, LogicalPosition>The final positions of child nodes, relative to the container’s content-box origin.
overflow_size: LogicalSizeThe total size occupied by the content, which may exceed available_size.
baseline: Option<f32>The baseline of the context, if applicable, measured from the top of its content box.
Trait Implementations§
Source§impl Clone for LayoutOutput
impl Clone for LayoutOutput
Source§fn clone(&self) -> LayoutOutput
fn clone(&self) -> LayoutOutput
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 LayoutOutput
impl Debug for LayoutOutput
Source§impl Default for LayoutOutput
impl Default for LayoutOutput
Source§fn default() -> LayoutOutput
fn default() -> LayoutOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutOutput
impl RefUnwindSafe for LayoutOutput
impl Send for LayoutOutput
impl Sync for LayoutOutput
impl Unpin for LayoutOutput
impl UnwindSafe for LayoutOutput
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