pub struct QueueIndex(pub u16);Expand description
Type-safe wrapper around a queue cursor index. Wraps modulo queue_size
at the call site.
Tuple Fields§
§0: u16Trait Implementations§
Source§impl Clone for QueueIndex
impl Clone for QueueIndex
Source§fn clone(&self) -> QueueIndex
fn clone(&self) -> QueueIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueueIndex
impl Debug for QueueIndex
Source§impl Default for QueueIndex
impl Default for QueueIndex
Source§fn default() -> QueueIndex
fn default() -> QueueIndex
Returns the “default value” for a type. Read more
Source§impl PartialEq for QueueIndex
impl PartialEq for QueueIndex
Source§fn eq(&self, other: &QueueIndex) -> bool
fn eq(&self, other: &QueueIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for QueueIndex
impl Eq for QueueIndex
impl StructuralPartialEq for QueueIndex
Auto Trait Implementations§
impl Freeze for QueueIndex
impl RefUnwindSafe for QueueIndex
impl Send for QueueIndex
impl Sync for QueueIndex
impl Unpin for QueueIndex
impl UnsafeUnpin for QueueIndex
impl UnwindSafe for QueueIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more