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§
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] ⓘ
Sourcefn extend_from(&mut self, other: &Self)
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".