Skip to main content

HeterogeneousQueue

Trait HeterogeneousQueue 

Source
pub trait HeterogeneousQueue {
    type Item;

    // Required methods
    fn iter(&self) -> QueueIterator<'_, Self, Self::Item> ⓘ
       where Self: Sized;
    fn len_bytes(&self) -> usize;
    fn nb_objects(&self) -> usize;
    fn capacity_bytes(&self) -> usize;
    fn read_value_at_offset(&self, offset: usize) -> (Self::Item, usize);
    fn new(buffer_size: usize) -> Self;
    fn reflect_contained() -> Vec<UserDefinedType>;
    fn as_bytes(&self) -> &[u8] ⓘ;
    fn extend_from(&mut self, other: &Self);
}

Required Associated Types§

Required Methods§

Source

fn iter(&self) -> QueueIterator<'_, Self, Self::Item> ⓘ
where Self: Sized,

Source

fn len_bytes(&self) -> usize

Source

fn nb_objects(&self) -> usize

Source

fn capacity_bytes(&self) -> usize

Source

fn read_value_at_offset(&self, offset: usize) -> (Self::Item, usize)

Source

fn new(buffer_size: usize) -> Self

Source

fn reflect_contained() -> Vec<UserDefinedType>

Source

fn as_bytes(&self) -> &[u8] ⓘ

Source

fn extend_from(&mut self, other: &Self)

Appends the records of other, which must be a queue of the same type so that the type indices mean the same thing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§