Struct serum_dex::state::Queue [−][src]
pub struct Queue<'a, H: QueueHeader> { /* fields omitted */ }
Implementations
impl<'a, H: QueueHeader> Queue<'a, H>
[src]
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
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,