#[repr(C)]pub struct DisabledMap { /* private fields */ }
Expand description
Fixed size map generated by the macro.
Implementations§
Source§impl DisabledMap
impl DisabledMap
Sourcepub fn get(&self, key: &(DomainDisabledFlag, ActionDisabledFlag)) -> Option<&u8>
pub fn get(&self, key: &(DomainDisabledFlag, ActionDisabledFlag)) -> Option<&u8>
Get.
Sourcepub fn get_mut(
&mut self,
key: &(DomainDisabledFlag, ActionDisabledFlag),
) -> Option<&mut u8>
pub fn get_mut( &mut self, key: &(DomainDisabledFlag, ActionDisabledFlag), ) -> Option<&mut u8>
Get mutable reference to the corresponding value.
Sourcepub fn insert(
&mut self,
key: &(DomainDisabledFlag, ActionDisabledFlag),
value: u8,
) -> Option<u8>
pub fn insert( &mut self, key: &(DomainDisabledFlag, ActionDisabledFlag), value: u8, ) -> Option<u8>
Insert.
Sourcepub fn insert_with_options(
&mut self,
key: &(DomainDisabledFlag, ActionDisabledFlag),
value: u8,
new: bool,
) -> Result<Option<u8>, Error>
pub fn insert_with_options( &mut self, key: &(DomainDisabledFlag, ActionDisabledFlag), value: u8, new: bool, ) -> Result<Option<u8>, Error>
Insert with options.
Sourcepub fn remove(
&mut self,
key: &(DomainDisabledFlag, ActionDisabledFlag),
) -> Option<u8>
pub fn remove( &mut self, key: &(DomainDisabledFlag, ActionDisabledFlag), ) -> Option<u8>
Remove.
Trait Implementations§
Source§impl Clone for DisabledMap
impl Clone for DisabledMap
Source§fn clone(&self) -> DisabledMap
fn clone(&self) -> DisabledMap
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 moreSource§impl Debug for DisabledMap
impl Debug for DisabledMap
Source§impl Default for DisabledMap
impl Default for DisabledMap
Source§impl InitSpace for DisabledMap
impl InitSpace for DisabledMap
Source§const INIT_SPACE: usize = 196usize
const INIT_SPACE: usize = 196usize
Init Space.
impl Copy for DisabledMap
impl Pod for DisabledMap
Auto Trait Implementations§
impl Freeze for DisabledMap
impl RefUnwindSafe for DisabledMap
impl Send for DisabledMap
impl Sync for DisabledMap
impl Unpin for DisabledMap
impl UnwindSafe for DisabledMap
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more