IntoBounds

Trait IntoBounds 

Source
pub trait IntoBounds<T>: Sized {
    type Error;

    // Required method
    fn into_bounds(
        self,
    ) -> Result<(Endpoint<LEFT, T>, Endpoint<RIGHT, T>), Self::Error>;
}
Expand description

Used to convert an interval-like value into its endpoints.

§Notes

This is an extension of the (currently unstable) core::ops::IntoBounds.

Required Associated Types§

Source

type Error

The error signalling conversion to Endpoint-s fails.

Required Methods§

Source

fn into_bounds( self, ) -> Result<(Endpoint<LEFT, T>, Endpoint<RIGHT, T>), Self::Error>

Convert this value into the left and right bounds, consuming the value.

§Errors

Return Self::Error if the conversion fails.

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§