#[repr(u32)]pub enum SharedMemoryConfig {
DefaultBankSize = 0,
FourByteBankSize = 1,
EightByteBankSize = 2,
// some variants omitted
}
Expand description
This enumeration represents the options for configuring the shared memory bank size.
See CurrentContext::get_shared_memory_config and CurrentContext::set_shared_memory_config to get and set the cache config for the current context.
Variants§
DefaultBankSize = 0
Set shared-memory bank size to the default.
FourByteBankSize = 1
Set shared-memory bank width to four bytes
EightByteBankSize = 2
Set shared-memory bank width to eight bytes
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryConfig
fn clone(&self) -> SharedMemoryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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