#[non_exhaustive]#[repr(i32)]pub enum SharedMemoryCarveout {
Default = -1,
MaxShared = 100,
MaxL1 = 0,
}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.
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryCarveout
fn clone(&self) -> SharedMemoryCarveout
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§fn from(value: CUshared_carveout) -> Self
fn from(value: CUshared_carveout) -> Self
Converts to this type from the input type.
Source§fn from(enum_value: SharedMemoryCarveout) -> Self
fn from(enum_value: SharedMemoryCarveout) -> Self
Converts to this type from the input type.
Source§fn from(value: SharedMemoryCarveout) -> Self
fn from(value: SharedMemoryCarveout) -> Self
Converts to this type from the input type.
Source§fn eq(&self, other: &SharedMemoryCarveout) -> bool
fn eq(&self, other: &SharedMemoryCarveout) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§type Error = TryFromPrimitiveError<SharedMemoryCarveout>
type Error = TryFromPrimitiveError<SharedMemoryCarveout>
The type returned in the event of a conversion error.
const NAME: &'static str = "SharedMemoryCarveout"
type Primitive = i32
type Error = TryFromPrimitiveError<SharedMemoryCarveout>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
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