Trait StmtBuild

Source
pub trait StmtBuild<T> {
    // Required methods
    fn add(self, s: T) -> Self;
    fn with<F: Fn(T) -> T>(self, build: F) -> Self
       where T: Default;
}

Required Methods§

Source

fn add(self, s: T) -> Self

Source

fn with<F: Fn(T) -> T>(self, build: F) -> Self
where T: Default,

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.

Implementations on Foreign Types§

Source§

impl<T> StmtBuild<T> for Vec<T>

Source§

fn add(self, s: T) -> Self

Source§

fn with<F: Fn(T) -> T>(self, build: F) -> Self
where T: Default,

Implementors§