pub struct SizedAtom<'a> {
pub size: Vec2,
pub intrinsic_size: Vec2,
pub kind: SizedAtomKind<'a>,
/* private fields */
}Expand description
A crate::Atom which has been sized.
Fields§
§size: Vec2The size of the atom.
Used for placing this atom in crate::AtomLayout, the cursor will advance by
size.x + gap.
intrinsic_size: Vec2Intrinsic size of the atom. This is used to calculate Response::intrinsic_size.
kind: SizedAtomKind<'a>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SizedAtom<'a>
impl<'a> RefUnwindSafe for SizedAtom<'a>
impl<'a> Send for SizedAtom<'a>
impl<'a> Sync for SizedAtom<'a>
impl<'a> Unpin for SizedAtom<'a>
impl<'a> UnwindSafe for SizedAtom<'a>
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