pub enum ChildList {
Ids(Vec<String>),
Template(ChildTemplate),
}Expand description
How a component declares its children.
Either a static list of ids, or a template: one component id instantiated
once per item of the array at path. The template form is what creates a
collection scope for relative data bindings (see crate::binding).
Variants§
Ids(Vec<String>)
A fixed set of child component ids.
Template(ChildTemplate)
A template instantiated once per element of a bound array.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChildList
impl<'de> Deserialize<'de> for ChildList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ChildList
Auto Trait Implementations§
impl Freeze for ChildList
impl RefUnwindSafe for ChildList
impl Send for ChildList
impl Sync for ChildList
impl Unpin for ChildList
impl UnsafeUnpin for ChildList
impl UnwindSafe for ChildList
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