pub struct StructuredArrayEntry { /* private fields */ }Expand description
One compiled entry in a structured array.
Fixed entries emit one structured value. Iteration entries emit one value for each source element. The internal representation is kept private so array rendering and template compilation remain separate concerns.
Implementations§
Source§impl StructuredArrayEntry
impl StructuredArrayEntry
Sourcepub fn from_value(value: StructuredNode) -> Self
pub fn from_value(value: StructuredNode) -> Self
Creates a fixed structured array entry.
Sourcepub fn value_node(&self) -> Option<&StructuredNode>
pub fn value_node(&self) -> Option<&StructuredNode>
Returns the fixed value for a non-iterating entry.
Trait Implementations§
Source§impl From<StructuredNode> for StructuredArrayEntry
impl From<StructuredNode> for StructuredArrayEntry
Source§fn from(value: StructuredNode) -> Self
fn from(value: StructuredNode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StructuredArrayEntry
impl !Send for StructuredArrayEntry
impl !Sync for StructuredArrayEntry
impl !UnwindSafe for StructuredArrayEntry
impl Freeze for StructuredArrayEntry
impl Unpin for StructuredArrayEntry
impl UnsafeUnpin for StructuredArrayEntry
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