pub struct DynamicAnchor<'a> { /* private fields */ }Expand description
A dynamic template anchor viewed through a rendered VNode.
Implementations§
Source§impl<'a> DynamicAnchor<'a>
impl<'a> DynamicAnchor<'a>
Sourcepub fn nodes(
self,
) -> impl ExactSizeIterator<Item = DynamicNodeSlot<'a>> + DoubleEndedIterator + 'a
pub fn nodes( self, ) -> impl ExactSizeIterator<Item = DynamicNodeSlot<'a>> + DoubleEndedIterator + 'a
Iterate the dynamic node slots owned by this anchor.
Sourcepub fn attrs(
self,
) -> impl ExactSizeIterator<Item = DynamicAttrSlot<'a>> + DoubleEndedIterator + 'a
pub fn attrs( self, ) -> impl ExactSizeIterator<Item = DynamicAttrSlot<'a>> + DoubleEndedIterator + 'a
Iterate the dynamic attribute slots owned by this anchor.
Sourcepub fn slot_target(self) -> TemplateSlotTarget
pub fn slot_target(self) -> TemplateSlotTarget
The static template position where this anchor is inserted.
Sourcepub fn is_last_static_node(self) -> bool
pub fn is_last_static_node(self) -> bool
Whether this anchor points at the last static node at its sibling level.
Sourcepub fn is_root_level(self) -> bool
pub fn is_root_level(self) -> bool
Return true when this dynamic anchor is inserted at the vnode root level, with no enclosing static element.
Sourcepub fn parent_element_op_index(self) -> Option<usize>
pub fn parent_element_op_index(self) -> Option<usize>
The static element op that owns this anchor, or None for root-level anchors.
Sourcepub fn static_path(self) -> TemplatePath
pub fn static_path(self) -> TemplatePath
The static template path for this anchor.
Trait Implementations§
Source§impl<'a> Clone for DynamicAnchor<'a>
impl<'a> Clone for DynamicAnchor<'a>
impl<'a> Copy for DynamicAnchor<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DynamicAnchor<'a>
impl<'a> !Send for DynamicAnchor<'a>
impl<'a> !Sync for DynamicAnchor<'a>
impl<'a> !UnwindSafe for DynamicAnchor<'a>
impl<'a> Freeze for DynamicAnchor<'a>
impl<'a> Unpin for DynamicAnchor<'a>
impl<'a> UnsafeUnpin for DynamicAnchor<'a>
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,
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.