Skip to main content

IterableNodes

Struct IterableNodes 

Source
pub struct IterableNodes<Handle>(/* private fields */)
where
    Handle: RealDom;
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<Handle> IterableNodes<Handle>
where Handle: RealDom,

Source

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

Retrieve the first node mutably

Source

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

Retrieve the last node mutably

Trait Implementations§

Source§

impl<Handle> From<&String> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(other: &String) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<Handle> From<&f32> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &f32) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&f64> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &f64) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&i8> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &i8) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&i16> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &i16) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&i32> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &i32) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&i64> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &i64) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&i128> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &i128) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&isize> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &isize) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&str> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(other: &str) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&u8> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &u8) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&u16> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &u16) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&u32> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &u32) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&u64> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &u64) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&u128> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &u128) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<&usize> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: &usize) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<Handle> From<String> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(other: String) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

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

Available on crate feature web only.
Source§

fn from(from: V) -> IterableNodes<Window>

Converts to this type from the input type.
Source§

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

Available on crate feature web only.
Source§

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

Converts to this type from the input type.
Source§

impl<Handle> From<Vec<VirtualNode<Handle>>> for IterableNodes<Handle>
where Handle: RealDom,

Source§

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

Converts to this type from the input type.
Source§

impl<Handle> From<VirtualNode<Handle>> for IterableNodes<Handle>
where Handle: RealDom,

Source§

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

Converts to this type from the input type.
Source§

impl<Handle> From<f32> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: f32) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<f64> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: f64) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<i8> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: i8) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<i16> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: i16) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<i32> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: i32) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<i64> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: i64) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<i128> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: i128) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<isize> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: isize) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<u8> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: u8) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<u16> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: u16) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<u32> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: u32) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<u64> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: u64) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<u128> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: u128) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> From<usize> for IterableNodes<Handle>
where Handle: RealDom,

Source§

fn from(val: usize) -> IterableNodes<Handle>

Converts to this type from the input type.
Source§

impl<Handle> IntoIterator for IterableNodes<Handle>
where Handle: RealDom,

Source§

type Item = VirtualNode<Handle>

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<VirtualNode<Handle>>

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

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

Creates an iterator from a value. Read more

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>
where <Handle as RealDom>::EventCallback: Unpin,

§

impl<Handle> UnsafeUnpin for IterableNodes<Handle>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more