Struct mc_core::util::Palette[][src]

pub struct Palette<T> { /* fields omitted */ }
Expand description

A palette is a vector with limited capacity that allows searching indices of elements.

Implementations

Create a new empty palette with the specified capacity.

Create a new palette of the specified capacity and fill it with the given iterator. At most capacity elements are took from the iterator.

Create a new palette with a default element into it and with the specified capacity.

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.