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§
Sourcefn attach(&mut self, other: Component) -> TexResult<&mut Self>
fn attach(&mut self, other: Component) -> TexResult<&mut Self>
Weird return type for chaining attaches.
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>
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.