Split

Trait Split 

Source
pub trait Split<To: Presence>: Presence {
    // Required method
    fn split<T>(value: Self::Output<T>) -> SplitResult<To, Self, T>
       where Self: Sized;
}
Expand description

Trait for compile-time checked splitting from one presence to another.

Returns both the selected value (in target presence state) and the remainder.

Required Methods§

Source

fn split<T>(value: Self::Output<T>) -> SplitResult<To, Self, T>
where Self: Sized,

Split a value into selected and remainder parts.

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§