Skip to main content

EmptyInput

Trait EmptyInput 

Source
pub trait EmptyInput {
    // Required method
    fn empty() -> Self;
}
Expand description

Marker trait which signifies a empty input. Used to differentiate empty and non-empty inputs for generic implementations using generic constraints.

Required Methods§

Source

fn empty() -> 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.

Implementations on Foreign Types§

Source§

impl EmptyInput for ()

Source§

fn empty() -> Self

Implementors§