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: Vec2
The size of the atom.
Used for placing this atom in crate::AtomLayout
, the cursor will advance by
size.x + gap.
intrinsic_size: Vec2
Intrinsic 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