Type Alias Children

pub type Children = Children<View>;
Expand description

A type alias for Children automatically selecting the correct node type.

Aliased Type§

struct Children { /* private fields */ }

Implementations

§

impl<V> Children<V>

pub fn call(self) -> V

Instantiates the child view.

pub fn new(f: impl FnOnce() -> V + 'static) -> Children<V>

Create a new [Children] from a closure.

Trait Implementations

§

impl<V> Debug for Children<V>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<V> Default for Children<V>
where V: Default + 'static,

§

fn default() -> Children<V>

Returns the “default value” for a type. Read more
§

impl<F, V> From<F> for Children<V>
where F: FnOnce() -> V + 'static,

§

fn from(f: F) -> Children<V>

Converts to this type from the input type.