pub enum BoxChild {
Placed(PlacedChild),
Plain(Node),
}Expand description
A box’s child: a node, or {"box": item fields, "node": node} when it has item fields (size,
flex or grid placement, aspect_ratio, border_radius, margin).
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BoxChild
impl<'de> Deserialize<'de> for BoxChild
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BoxChild
Auto Trait Implementations§
impl Forget for BoxChild
impl Freeze for BoxChild
impl Move for BoxChild
impl RefUnwindSafe for BoxChild
impl Send for BoxChild
impl Sync for BoxChild
impl Unpin for BoxChild
impl UnsafeUnpin for BoxChild
impl UnwindSafe for BoxChild
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