Trait OrEmpty

Source
pub trait OrEmpty<T> {
    // Required method
    fn from_t(t: T) -> Self;
}

Required Methods§

Source

fn from_t(t: T) -> 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§

Source§

impl<A, B> OrEmpty<Flat<A, B>> for Empty

Source§

impl<T> OrEmpty<T> for T