pub enum UnderflowPolicy {
ReturnNone,
Panic,
}Expand description
Underflow behaviour policy for bounded queues.
Variants§
Trait Implementations§
Source§impl Clone for UnderflowPolicy
impl Clone for UnderflowPolicy
Source§fn clone(&self) -> UnderflowPolicy
fn clone(&self) -> UnderflowPolicy
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 moreimpl Copy for UnderflowPolicy
Source§impl Debug for UnderflowPolicy
impl Debug for UnderflowPolicy
impl Eq for UnderflowPolicy
Source§impl PartialEq for UnderflowPolicy
impl PartialEq for UnderflowPolicy
Source§fn eq(&self, other: &UnderflowPolicy) -> bool
fn eq(&self, other: &UnderflowPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnderflowPolicy
Auto Trait Implementations§
impl Freeze for UnderflowPolicy
impl RefUnwindSafe for UnderflowPolicy
impl Send for UnderflowPolicy
impl Sync for UnderflowPolicy
impl Unpin for UnderflowPolicy
impl UnsafeUnpin for UnderflowPolicy
impl UnwindSafe for UnderflowPolicy
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