#[repr(u8)]pub enum CaptureBindingMode {
Copy = 0,
Borrow = 1,
BorrowMut = 2,
Move = 3,
}Variants§
Trait Implementations§
Source§impl Clone for CaptureBindingMode
impl Clone for CaptureBindingMode
Source§fn clone(&self) -> CaptureBindingMode
fn clone(&self) -> CaptureBindingMode
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 CaptureBindingMode
Source§impl Debug for CaptureBindingMode
impl Debug for CaptureBindingMode
impl Eq for CaptureBindingMode
Source§impl Hash for CaptureBindingMode
impl Hash for CaptureBindingMode
Source§impl Ord for CaptureBindingMode
impl Ord for CaptureBindingMode
Source§fn cmp(&self, other: &CaptureBindingMode) -> Ordering
fn cmp(&self, other: &CaptureBindingMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CaptureBindingMode
impl PartialEq for CaptureBindingMode
Source§impl PartialOrd for CaptureBindingMode
impl PartialOrd for CaptureBindingMode
impl StructuralPartialEq for CaptureBindingMode
Auto Trait Implementations§
impl Freeze for CaptureBindingMode
impl RefUnwindSafe for CaptureBindingMode
impl Send for CaptureBindingMode
impl Sync for CaptureBindingMode
impl Unpin for CaptureBindingMode
impl UnsafeUnpin for CaptureBindingMode
impl UnwindSafe for CaptureBindingMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.