pub struct PostMeasure<Key: NodeKey> {
pub content_size: Option<Size2D>,
pub offsets: Vec<(Key, Length, Length)>,
pub hidden_children: Vec<Key>,
}Expand description
Result of a LayoutMeasurer::post_measure step.
Fields§
§content_size: Option<Size2D>Corrected content size, re-applied through the Node’s min/max sizing.
offsets: Vec<(Key, Length, Length)>(x, y) offsets to move each visible child’s subtree by.
Children whose subtree must be hidden from painting and events.
Trait Implementations§
Auto Trait Implementations§
impl<Key> Freeze for PostMeasure<Key>
impl<Key> RefUnwindSafe for PostMeasure<Key>where
Key: RefUnwindSafe,
impl<Key> Send for PostMeasure<Key>where
Key: Send,
impl<Key> Sync for PostMeasure<Key>where
Key: Sync,
impl<Key> Unpin for PostMeasure<Key>where
Key: Unpin,
impl<Key> UnsafeUnpin for PostMeasure<Key>
impl<Key> UnwindSafe for PostMeasure<Key>where
Key: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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