Struct CacheEnable
#[repr(transparent)]pub struct CacheEnable(pub u32);
Expand description
Enable cache.
Tuple Fields§
§0: u32
Implementations§
§impl CacheEnable
impl CacheEnable
pub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
Enable cache
Trait Implementations§
§impl Clone for CacheEnable
impl Clone for CacheEnable
§fn clone(&self) -> CacheEnable
fn clone(&self) -> CacheEnable
Returns a copy 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 more§impl Default for CacheEnable
impl Default for CacheEnable
§fn default() -> CacheEnable
fn default() -> CacheEnable
Returns the “default value” for a type. Read more
§impl PartialEq for CacheEnable
impl PartialEq for CacheEnable
impl Copy for CacheEnable
impl Eq for CacheEnable
impl StructuralPartialEq for CacheEnable
Auto Trait Implementations§
impl Freeze for CacheEnable
impl RefUnwindSafe for CacheEnable
impl Send for CacheEnable
impl Sync for CacheEnable
impl Unpin for CacheEnable
impl UnwindSafe for CacheEnable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)