pub enum PropKind {
Value,
ComponentRef,
ChildList,
ObjectListRefs {
ref_keys: Vec<String>,
},
}Expand description
How a component property participates in the component graph.
Variants§
Value
A literal or data-bound value. Never a structural link.
ComponentRef
A single component id (common_types.json#/$defs/ComponentId).
ChildList
A ChildList: either an array of component ids or a template object.
ObjectListRefs
An array of objects, where the named keys each hold a component id.
Tabs.tabs is the canonical case: [{title, child}, ...].
Implementations§
Trait Implementations§
impl Eq for PropKind
impl StructuralPartialEq for PropKind
Auto Trait Implementations§
impl Freeze for PropKind
impl RefUnwindSafe for PropKind
impl Send for PropKind
impl Sync for PropKind
impl Unpin for PropKind
impl UnsafeUnpin for PropKind
impl UnwindSafe for PropKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.