Struct Cache

Source
pub struct Cache<T, const N: usize> { /* private fields */ }
Expand description

A cache of N Ts. When the cache is filled up, a new entry overwrites the oldest entry. Cache<T, N> cannot be expanded or shrunk.

Implementations§

Source§

impl<T, const N: usize> Cache<T, N>

Source

pub const fn len(&self) -> usize

Returns the number of items cached. This will always return N once at least N items have been cached.

Source

pub const fn is_empty(&self) -> bool

Returns true iff no items have been cached.

Source§

impl<T> Cache<T, 0x1>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x2>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x4>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x8>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x10>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x20>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x40>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x80>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x100>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x200>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x400>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x800>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x1000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x2000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x4000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x8000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0001_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0002_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0004_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0008_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0010_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0020_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0040_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0080_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0100_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0200_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0400_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0800_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x1000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x2000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x4000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x8000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0001_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0002_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0004_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0008_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0010_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0020_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0040_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0080_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0100_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0200_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0400_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0800_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x1000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x2000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x4000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x8000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0001_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0002_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0004_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0008_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0010_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0020_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0040_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0080_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0100_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0200_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0400_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x0800_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x1000_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x2000_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x4000_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T> Cache<T, 0x8000_0000_0000_0000>

Source

pub fn get(&self, idx: usize) -> Option<&T>

Returns Some(&T) iff there is an item located at index idx. Indexing begins at the newest entry (i.e., self.get(0) will return the most recent entry iff at least one item has been cached).

Source

pub fn get_unchecked(&self, idx: usize) -> &T

Returns a &T at index position idx % N. In the event (idx % N) >= self.len(), then &T references the default value of T that was inserted at creation but not actually inserted via push.

§Correctness

idx < self.len(); otherwise a value that was not actually inserted will be returned.

Source

pub fn push(&mut self, val: T)

Adds val to the cache. In the event N values have already been cached, the oldest entry is overwritten.

Source§

impl<T, const N: usize> Cache<T, N>
where [T; N]: Default,

Source

pub fn new() -> Self

Returns an instance of itself pre-loaded with the N instances of the default value of T. Note these default instances are treated as though they don’t exist (i.e., self.is_empty() will return true).

Trait Implementations§

Source§

impl<T: Debug, const N: usize> Debug for Cache<T, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, const N: usize> Default for Cache<T, N>
where [T; N]: Default,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T> Index<usize> for Cache<T, 0x1>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x400>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0010_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x4000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0100_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0004_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x1000_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x80>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0002_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0800_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0020_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x8000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0200_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x10>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x4000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0100_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0004_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x1000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0040_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x2>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x800>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0020_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x8000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0200_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0008_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x2000_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x100>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0004_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x1000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0040_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0001_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0400_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x20>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x8000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0200_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0008_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x2000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0080_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x4>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x1000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0040_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0001_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0400_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0010_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x4000_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x200>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0008_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x2000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0080_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0002_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0800_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x40>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0001_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0400_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0010_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x4000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0100_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x8>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x2000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0080_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0002_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0800_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x0020_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> Index<usize> for Cache<T, 0x8000_0000_0000_0000>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

Auto Trait Implementations§

§

impl<T, const N: usize> Freeze for Cache<T, N>
where T: Freeze,

§

impl<T, const N: usize> RefUnwindSafe for Cache<T, N>
where T: RefUnwindSafe,

§

impl<T, const N: usize> Send for Cache<T, N>
where T: Send,

§

impl<T, const N: usize> Sync for Cache<T, N>
where T: Sync,

§

impl<T, const N: usize> Unpin for Cache<T, N>
where T: Unpin,

§

impl<T, const N: usize> UnwindSafe for Cache<T, N>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V