#[repr(C)]pub struct ShortQueueElement<T>{ /* private fields */ }
Expand description
An element in a short queue.
See ShortQueue
for more details.
§Invariant
timestamp
== 0 ==>value
is not validtimestamp
!= 0 ==>value
is valid and in the queuetimestamp
is unique for each enqueued element and in the range[lowest_timestamp, highest_timestamp]
Implementations§
Trait Implementations§
Source§impl<T> Clone for ShortQueueElement<T>
impl<T> Clone for ShortQueueElement<T>
Source§fn clone(&self) -> ShortQueueElement<T>
fn clone(&self) -> ShortQueueElement<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Cmov for ShortQueueElement<T>
impl<T> Cmov for ShortQueueElement<T>
Source§impl<T> Debug for ShortQueueElement<T>
impl<T> Debug for ShortQueueElement<T>
Source§impl<T> Default for ShortQueueElement<T>
impl<T> Default for ShortQueueElement<T>
Source§fn default() -> ShortQueueElement<T>
fn default() -> ShortQueueElement<T>
Returns the “default value” for a type. Read more
Source§impl<T> Zeroable for ShortQueueElement<T>
impl<T> Zeroable for ShortQueueElement<T>
impl<T> Copy for ShortQueueElement<T>
impl<T: Cmov + Pod> Pod for ShortQueueElement<T>
Auto Trait Implementations§
impl<T> Freeze for ShortQueueElement<T>where
T: Freeze,
impl<T> RefUnwindSafe for ShortQueueElement<T>where
T: RefUnwindSafe,
impl<T> Send for ShortQueueElement<T>where
T: Send,
impl<T> Sync for ShortQueueElement<T>where
T: Sync,
impl<T> Unpin for ShortQueueElement<T>where
T: Unpin,
impl<T> UnwindSafe for ShortQueueElement<T>where
T: UnwindSafe,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.