pub struct IterableNodes<Handle: RealDom>(/* private fields */);Expand description
Used by the html! macro for all braced child nodes so that we can use any type
that implements Into
html! {
{ nodes }
}
nodes can be a String .. VirtualNode .. Vec
Implementations§
Source§impl<Handle: RealDom> IterableNodes<Handle>
impl<Handle: RealDom> IterableNodes<Handle>
Sourcepub fn first_mut(&mut self) -> Option<&mut VirtualNode<Handle>>
pub fn first_mut(&mut self) -> Option<&mut VirtualNode<Handle>>
Retrieve the first node mutably
Sourcepub fn last_mut(&mut self) -> Option<&mut VirtualNode<Handle>>
pub fn last_mut(&mut self) -> Option<&mut VirtualNode<Handle>>
Retrieve the last node mutably
Trait Implementations§
Source§impl<T: Into<IterableNodes<Handle>>, Handle: RealDom> From<Option<T>> for IterableNodes<Handle>
impl<T: Into<IterableNodes<Handle>>, Handle: RealDom> From<Option<T>> for IterableNodes<Handle>
Source§impl<V: View<Window>> From<Vec<V>> for IterableNodes<Window>
Available on crate feature web only.
impl<V: View<Window>> From<Vec<V>> for IterableNodes<Window>
Available on crate feature
web only.Source§impl<Handle: RealDom> From<Vec<VirtualNode<Handle>>> for IterableNodes<Handle>
impl<Handle: RealDom> From<Vec<VirtualNode<Handle>>> for IterableNodes<Handle>
Source§fn from(other: Vec<VirtualNode<Handle>>) -> Self
fn from(other: Vec<VirtualNode<Handle>>) -> Self
Converts to this type from the input type.
Source§impl<Handle: RealDom> From<VirtualNode<Handle>> for IterableNodes<Handle>
impl<Handle: RealDom> From<VirtualNode<Handle>> for IterableNodes<Handle>
Source§fn from(other: VirtualNode<Handle>) -> Self
fn from(other: VirtualNode<Handle>) -> Self
Converts to this type from the input type.
Source§impl<Handle: RealDom> IntoIterator for IterableNodes<Handle>
impl<Handle: RealDom> IntoIterator for IterableNodes<Handle>
Auto Trait Implementations§
impl<Handle> !RefUnwindSafe for IterableNodes<Handle>
impl<Handle> !Send for IterableNodes<Handle>
impl<Handle> !Sync for IterableNodes<Handle>
impl<Handle> !UnwindSafe for IterableNodes<Handle>
impl<Handle> Freeze for IterableNodes<Handle>
impl<Handle> Unpin for IterableNodes<Handle>
impl<Handle> UnsafeUnpin for IterableNodes<Handle>
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