Struct index_ext::array::RangeTo[][src]

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];

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.