Enum nannou_core::rand::seq::index::IndexVec [−][src]
pub enum IndexVec {
// some variants omitted
}
Expand description
A vector of indices.
Multiple internal representations are possible.
Implementations
Return the value at the given index
.
(Note: we cannot implement [std::ops::Index
] because of lifetime
restrictions.)
Return result as a Vec<usize>
. Conversion may or may not be trivial.
pub fn iter(&self) -> IndexVecIter<'_>ⓘNotable traits for IndexVecIter<'a>impl<'a> Iterator for IndexVecIter<'a> type Item = usize;
pub fn iter(&self) -> IndexVecIter<'_>ⓘNotable traits for IndexVecIter<'a>impl<'a> Iterator for IndexVecIter<'a> type Item = usize;
impl<'a> Iterator for IndexVecIter<'a> type Item = usize;
Iterate over the indices as a sequence of usize
values
Trait Implementations
pub fn into_iter(self) -> IndexVecIntoIterⓘNotable traits for IndexVecIntoIterimpl Iterator for IndexVecIntoIter type Item = usize;
pub fn into_iter(self) -> IndexVecIntoIterⓘNotable traits for IndexVecIntoIterimpl Iterator for IndexVecIntoIter type Item = usize;
impl Iterator for IndexVecIntoIter type Item = usize;
Convert into an iterator over the indices as a sequence of usize
values
type IntoIter = IndexVecIntoIter
type IntoIter = IndexVecIntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for IndexVec
impl UnwindSafe for IndexVec
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more