#[repr(u32)]pub enum OwnershipKind {
Shared = 0,
Exclusive = 1,
}Expand description
Ownership-Kind.
Variants§
Implementations§
Source§impl OwnershipKind
impl OwnershipKind
Sourcepub const fn try_from_u32(v: u32) -> Option<OwnershipKind>
pub const fn try_from_u32(v: u32) -> Option<OwnershipKind>
Strikter Mapper.
Sourcepub const fn from_u32(v: u32) -> OwnershipKind
pub const fn from_u32(v: u32) -> OwnershipKind
Forward-kompatibler Mapper.
Trait Implementations§
Source§impl Clone for OwnershipKind
impl Clone for OwnershipKind
Source§fn clone(&self) -> OwnershipKind
fn clone(&self) -> OwnershipKind
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 OwnershipKind
impl Debug for OwnershipKind
Source§impl Default for OwnershipKind
impl Default for OwnershipKind
Source§fn default() -> OwnershipKind
fn default() -> OwnershipKind
Returns the “default value” for a type. Read more
Source§impl PartialEq for OwnershipKind
impl PartialEq for OwnershipKind
Source§fn eq(&self, other: &OwnershipKind) -> bool
fn eq(&self, other: &OwnershipKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OwnershipKind
impl Eq for OwnershipKind
impl StructuralPartialEq for OwnershipKind
Auto Trait Implementations§
impl Freeze for OwnershipKind
impl RefUnwindSafe for OwnershipKind
impl Send for OwnershipKind
impl Sync for OwnershipKind
impl Unpin for OwnershipKind
impl UnsafeUnpin for OwnershipKind
impl UnwindSafe for OwnershipKind
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