Trait SplitHelper

Source
pub trait SplitHelper {
    // Provided methods
    fn fit<Target>(&mut self) -> &mut Target
       where Self: Split<Target> { ... }
    fn fit_rest<Target>(&mut self) -> &mut Self::Rest
       where Self: Split<Target> { ... }
    fn split<Target>(&mut self) -> (&mut Target, &mut Self::Rest)
       where Self: Split<Target> { ... }
}

Provided Methods§

Source

fn fit<Target>(&mut self) -> &mut Target
where Self: Split<Target>,

Source

fn fit_rest<Target>(&mut self) -> &mut Self::Rest
where Self: Split<Target>,

Source

fn split<Target>(&mut self) -> (&mut Target, &mut Self::Rest)
where Self: Split<Target>,

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<T> SplitHelper for T