Struct serum_dex::state::Queue[][src]

pub struct Queue<'a, H: QueueHeader> { /* fields omitted */ }

Implementations

impl<'a, H: QueueHeader> Queue<'a, H>[src]

pub fn new(header: RefMut<'a, H>, buf: RefMut<'a, [H::Item]>) -> Self[src]

pub fn len(&self) -> u64[src]

pub fn full(&self) -> bool[src]

pub fn empty(&self) -> bool[src]

pub fn push_back(&mut self, value: H::Item) -> Result<(), H::Item>[src]

pub fn peek_front(&self) -> Option<&H::Item>[src]

pub fn peek_front_mut(&mut self) -> Option<&mut H::Item>[src]

pub fn pop_front(&mut self) -> Result<H::Item, ()>[src]

pub fn revert_pushes(&mut self, desired_len: u64) -> DexResult<()>[src]

pub fn iter(&self) -> impl Iterator<Item = &H::Item>[src]

Auto Trait Implementations

impl<'a, H> !RefUnwindSafe for Queue<'a, H>

impl<'a, H> !Send for Queue<'a, H>

impl<'a, H> !Sync for Queue<'a, H>

impl<'a, H> Unpin for Queue<'a, H>

impl<'a, H> !UnwindSafe for Queue<'a, H>

Blanket Implementations

impl<T> AbiExample for T

pub default fn example() -> T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

pub fn vzip(self) -> V