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§
fn add(self, s: T) -> Self
fn with<F: Fn(T) -> T>(self, build: F) -> Selfwhere
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.