pub struct RangeTo<const N: usize>;
Expand description
A marker struct for statically sized range to (..n
).
This can make use of parameter deduction in many cases, for example if assigning the slice to a
right hand side array pattern.
use index_ext::array::RangeTo;
let [r, g, b] = buf[RangeTo];
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Performs the mutable indexing (container[index]
) operation. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.