IterableNodes

Struct IterableNodes 

Source
pub struct IterableNodes(/* 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 … etc

Implementations§

Source§

impl IterableNodes

Source

pub fn first_mut(&mut self) -> Option<&mut VirtualNode>

Retrieve the first node mutably

Source

pub fn last_mut(&mut self) -> Option<&mut VirtualNode>

Retrieve the last node mutably

Trait Implementations§

Source§

impl<V> From<&[V]> for IterableNodes
where V: View,

Source§

fn from(other: &[V]) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&String> for IterableNodes

Source§

fn from(other: &String) -> IterableNodes

Converts to this type from the input type.
Source§

impl<V> From<&Vec<V>> for IterableNodes
where V: View,

Source§

fn from(other: &Vec<V>) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&f32> for IterableNodes

Source§

fn from(val: &f32) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&f64> for IterableNodes

Source§

fn from(val: &f64) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&i128> for IterableNodes

Source§

fn from(val: &i128) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&i16> for IterableNodes

Source§

fn from(val: &i16) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&i32> for IterableNodes

Source§

fn from(val: &i32) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&i64> for IterableNodes

Source§

fn from(val: &i64) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&i8> for IterableNodes

Source§

fn from(val: &i8) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&isize> for IterableNodes

Source§

fn from(val: &isize) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&str> for IterableNodes

Source§

fn from(other: &str) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&u128> for IterableNodes

Source§

fn from(val: &u128) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&u16> for IterableNodes

Source§

fn from(val: &u16) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&u32> for IterableNodes

Source§

fn from(val: &u32) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&u64> for IterableNodes

Source§

fn from(val: &u64) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&u8> for IterableNodes

Source§

fn from(val: &u8) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<&usize> for IterableNodes

Source§

fn from(val: &usize) -> IterableNodes

Converts to this type from the input type.
Source§

impl<T> From<Option<T>> for IterableNodes
where T: Into<IterableNodes>,

Source§

fn from(opt: Option<T>) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<String> for IterableNodes

Source§

fn from(other: String) -> IterableNodes

Converts to this type from the input type.
Source§

impl<V> From<V> for IterableNodes
where V: View,

Source§

fn from(from: V) -> IterableNodes

Converts to this type from the input type.
Source§

impl<V> From<Vec<V>> for IterableNodes
where V: View,

Source§

fn from(other: Vec<V>) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<Vec<VirtualNode>> for IterableNodes

Source§

fn from(other: Vec<VirtualNode>) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<VirtualNode> for IterableNodes

Source§

fn from(other: VirtualNode) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<f32> for IterableNodes

Source§

fn from(val: f32) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<f64> for IterableNodes

Source§

fn from(val: f64) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<i128> for IterableNodes

Source§

fn from(val: i128) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<i16> for IterableNodes

Source§

fn from(val: i16) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<i32> for IterableNodes

Source§

fn from(val: i32) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<i64> for IterableNodes

Source§

fn from(val: i64) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<i8> for IterableNodes

Source§

fn from(val: i8) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<isize> for IterableNodes

Source§

fn from(val: isize) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<u128> for IterableNodes

Source§

fn from(val: u128) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<u16> for IterableNodes

Source§

fn from(val: u16) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<u32> for IterableNodes

Source§

fn from(val: u32) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<u64> for IterableNodes

Source§

fn from(val: u64) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<u8> for IterableNodes

Source§

fn from(val: u8) -> IterableNodes

Converts to this type from the input type.
Source§

impl From<usize> for IterableNodes

Source§

fn from(val: usize) -> IterableNodes

Converts to this type from the input type.
Source§

impl IntoIterator for IterableNodes

Source§

type Item = VirtualNode

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<VirtualNode>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> <IterableNodes as IntoIterator>::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.