Populate

Trait Populate 

Source
pub trait Populate {
    // Required methods
    fn attach(&mut self, other: Component) -> TexResult<&mut Self>;
    fn attach_vec(&mut self, other: Vec<Component>) -> TexResult<&mut Self>;
    fn attach_iter<I: Iterator<Item = Component>>(
        &mut self,
        other: I,
    ) -> TexResult<&mut Self>;
}

Required Methods§

Source

fn attach(&mut self, other: Component) -> TexResult<&mut Self>

Weird return type for chaining attaches.

Source

fn attach_vec(&mut self, other: Vec<Component>) -> TexResult<&mut Self>

Source

fn attach_iter<I: Iterator<Item = Component>>( &mut self, other: I, ) -> TexResult<&mut Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§