#[non_exhaustive]#[repr(u8)]pub enum scope {
PRIVATE = 4,
SHARED = 8,
}Expand description
Indicates whether an object is stored in private or shared memory.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PRIVATE = 4
The object is stored in private memory.
SHARED = 8
The object is stored in shared memory.
Trait Implementations§
impl Copy for scope
impl Eq for scope
impl StructuralPartialEq for scope
Auto Trait Implementations§
impl Freeze for scope
impl RefUnwindSafe for scope
impl Send for scope
impl Sync for scope
impl Unpin for scope
impl UnwindSafe for scope
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