pub trait GetBeginEnd<T> {
// Required methods
fn get_begin(&self) -> &T;
fn get_end(&self) -> &T;
fn to_tuple(self) -> (T, T);
// Provided method
fn to_tuple_ref(&self) -> (&T, &T) { ... }
}Expand description
Trait used by internals to represent ranges.
Required Methods§
Provided Methods§
fn to_tuple_ref(&self) -> (&T, &T)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".