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§
Required Methods§
Sourcefn into_bounds(
self,
) -> Result<(Endpoint<LEFT, T>, Endpoint<RIGHT, T>), Self::Error>
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.