ClosedRange

Trait ClosedRange 

Source
pub trait ClosedRange: Copy + Sealed { }
Expand description

A ClosedRange represents a closed range of values with pairs of Endpoints.

This trait stands for (T, T) &(T, T), where T implements Endpoint.

The ClosedRange trait is sealed and cannot be implemented for types outside this crate. External code may have to write down the trait’s name, but most likely shouldn’t try to actually invoke any method on that trait.

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.

Implementations on Foreign Types§

Source§

impl<T: Endpoint> ClosedRange for &(T, T)

Source§

impl<T: Endpoint> ClosedRange for (T, T)

Implementors§