pub struct DynamicValues { /* private fields */ }Expand description
Runtime node and attribute values that hydrate a static Template.
Implementations§
Source§impl DynamicValues
impl DynamicValues
Sourcepub fn from_parts(
key: Option<String>,
dynamic_nodes: Box<[DynamicNode]>,
dynamic_attrs: Box<[Box<[Attribute]>]>,
) -> Self
pub fn from_parts( key: Option<String>, dynamic_nodes: Box<[DynamicNode]>, dynamic_attrs: Box<[Box<[Attribute]>]>, ) -> Self
Create a dynamic node/attribute payload.
Each dynamic attribute slot is normalized so its attributes are sorted by
(name, namespace). Duplicate keys keep their relative input order, giving
last-wins semantics for spread attributes like ..props.attributes.
Sourcepub fn dynamic_node_values(&self) -> &[DynamicNode]
pub fn dynamic_node_values(&self) -> &[DynamicNode]
The dynamic node values in template order.
Sourcepub fn dynamic_attr_values(&self) -> &[Box<[Attribute]>]
pub fn dynamic_attr_values(&self) -> &[Box<[Attribute]>]
The dynamic attribute values in template order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DynamicValues
impl !Send for DynamicValues
impl !Sync for DynamicValues
impl !UnwindSafe for DynamicValues
impl Freeze for DynamicValues
impl Unpin for DynamicValues
impl UnsafeUnpin for DynamicValues
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.