#[non_exhaustive]#[repr(u32)]pub enum SharedMemoryConfig {
DefaultBankSize = 0,
FourByteBankSize = 1,
EightByteBankSize = 2,
}๐Deprecated
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.
DefaultBankSize = 0
๐Deprecated
FourByteBankSize = 1
๐Deprecated
EightByteBankSize = 2
๐Deprecated
Trait Implementationsยง
Sourceยงfn clone(&self) -> SharedMemoryConfig
fn clone(&self) -> SharedMemoryConfig
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: CUsharedconfig) -> Self
fn from(value: CUsharedconfig) -> Self
Converts to this type from the input type.
Sourceยงfn from(enum_value: SharedMemoryConfig) -> Self
fn from(enum_value: SharedMemoryConfig) -> Self
Converts to this type from the input type.
Sourceยงfn from(value: SharedMemoryConfig) -> Self
fn from(value: SharedMemoryConfig) -> Self
Converts to this type from the input type.
Sourceยงfn eq(&self, other: &SharedMemoryConfig) -> bool
fn eq(&self, other: &SharedMemoryConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Sourceยงtype Error = TryFromPrimitiveError<SharedMemoryConfig>
type Error = TryFromPrimitiveError<SharedMemoryConfig>
The type returned in the event of a conversion error.
const NAME: &'static str = "SharedMemoryConfig"
type Primitive = u32
type Error = TryFromPrimitiveError<SharedMemoryConfig>
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