pub trait IntoBounds<T>: RangeBounds<T> {
// Required method
fn into_bounds(self) -> (Bound<T>, Bound<T>);
}
🔬This is a nightly-only experimental API. (
range_into_bounds
#136903)Expand description
Used to convert a range into start and end bounds, consuming the range by value.
IntoBounds
is implemented by Rust’s built-in range types, produced
by range syntax like ..
, a..
, ..b
, ..=c
, d..e
, or f..=g
.
Required Methods§
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.