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 BoxChildwhere
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Node>: Freeze,
*const LeafNode<String, Animated<EffectValue>> is !null: Freeze,
PhantomData<Box<(String, Animated<EffectValue>)>>: Freeze,
PhantomData<Key<f32>>: Freeze,
PhantomData<TextStroke>: Freeze,
PhantomData<TextShadow>: Freeze,
PhantomData<Cue>: Freeze,
*const LeafNode<String, SpeakerLook> is !null: Freeze,
PhantomData<Box<(String, SpeakerLook)>>: Freeze,
*const LayoutNode is !null: Freeze,
PhantomData<LayoutNode>: Freeze,
PhantomData<MediaSource>: Freeze,
PhantomData<Track>: Freeze,
PhantomData<Composition>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<MediaItem>: Freeze,
*const Node is !null: Freeze,
*const Captions is !null: Freeze,
PhantomData<Captions>: Freeze,
PhantomData<EffectUse>: Freeze,
PhantomData<Key<[f32; 2]>>: Freeze,
PhantomData<Geometry>: Freeze,
PhantomData<Stop>: Freeze,
PhantomData<f32>: Freeze,
PhantomData<MaskShape>: Freeze,
PhantomData<BoxChild>: Freeze,
impl Move for BoxChild
impl RefUnwindSafe for BoxChild
impl Send for BoxChildwhere
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
RawVecInner: Send,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Send,
BoxRaw<(String, Animated<EffectValue>)>: Send,
NodeRef<Owned, String, SpeakerLook, LeafOrInternal>: Send,
BoxRaw<(String, SpeakerLook)>: Send,
BoxRaw<LayoutNode>: Send,
BoxRaw<DataBinding>: Send,
BoxRaw<TextStyle>: Send,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Send,
BoxRaw<(String, EffectResourceId)>: Send,
NodeRef<Owned, String, TextStylePatch, LeafOrInternal>: Send,
BoxRaw<(String, TextStylePatch)>: Send,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Send,
BoxRaw<(String, Option<NodeId>)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
BoxRaw<Node>: Send,
BoxRaw<Captions>: Send,
impl Sync for BoxChildwhere
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
NodeRef<Owned, String, SpeakerLook, LeafOrInternal>: Sync,
BoxRaw<(String, SpeakerLook)>: Sync,
BoxRaw<LayoutNode>: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<TextStyle>: Sync,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Sync,
BoxRaw<(String, EffectResourceId)>: Sync,
NodeRef<Owned, String, TextStylePatch, LeafOrInternal>: Sync,
BoxRaw<(String, TextStylePatch)>: Sync,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Sync,
BoxRaw<(String, Option<NodeId>)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
BoxRaw<Node>: Sync,
BoxRaw<Captions>: Sync,
impl Unpin for BoxChildwhere
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, Animated<EffectValue>> is !null: Unpin,
Box<(String, Animated<EffectValue>)>: Unpin,
*const LeafNode<String, SpeakerLook> is !null: Unpin,
Box<(String, SpeakerLook)>: Unpin,
Box<LayoutNode>: Unpin,
Box<DataBinding>: Unpin,
Box<TextStyle>: Unpin,
*const LeafNode<String, EffectResourceId> is !null: Unpin,
Box<(String, EffectResourceId)>: Unpin,
*const LeafNode<String, TextStylePatch> is !null: Unpin,
Box<(String, TextStylePatch)>: Unpin,
*const LeafNode<String, Option<NodeId>> is !null: Unpin,
Box<(String, Option<NodeId>)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Box<Node>: Unpin,
Box<Captions>: Unpin,
impl UnsafeUnpin for BoxChildwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
*const LeafNode<String, Animated<EffectValue>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Animated<EffectValue>)>>: UnsafeUnpin,
PhantomData<Key<f32>>: UnsafeUnpin,
PhantomData<TextStroke>: UnsafeUnpin,
PhantomData<TextShadow>: UnsafeUnpin,
PhantomData<Cue>: UnsafeUnpin,
*const LeafNode<String, SpeakerLook> is !null: UnsafeUnpin,
PhantomData<Box<(String, SpeakerLook)>>: UnsafeUnpin,
*const LayoutNode is !null: UnsafeUnpin,
PhantomData<LayoutNode>: UnsafeUnpin,
PhantomData<MediaSource>: UnsafeUnpin,
PhantomData<Track>: UnsafeUnpin,
PhantomData<Composition>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<MediaItem>: UnsafeUnpin,
*const Node is !null: UnsafeUnpin,
*const Captions is !null: UnsafeUnpin,
PhantomData<Captions>: UnsafeUnpin,
PhantomData<EffectUse>: UnsafeUnpin,
PhantomData<Key<[f32; 2]>>: UnsafeUnpin,
PhantomData<Geometry>: UnsafeUnpin,
PhantomData<Stop>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<MaskShape>: UnsafeUnpin,
PhantomData<BoxChild>: UnsafeUnpin,
impl UnwindSafe for BoxChildwhere
BTreeMap<String, Value>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, Animated<EffectValue>>: UnwindSafe,
BTreeMap<String, SpeakerLook>: UnwindSafe,
BoxRaw<LayoutNode>: UnwindSafe,
BoxRaw<DataBinding>: UnwindSafe,
BoxRaw<TextStyle>: UnwindSafe,
BTreeMap<String, EffectResourceId>: UnwindSafe,
BTreeMap<String, TextStylePatch>: UnwindSafe,
BTreeMap<String, Option<NodeId>>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BoxRaw<Node>: UnwindSafe,
BoxRaw<Captions>: 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