pub struct OptionCodeMap<T> { /* private fields */ }
Expand description
Represents a Map<OptionCode, T>
as an array of booleans.
Implementations§
Source§impl<T: Copy> OptionCodeMap<T>
impl<T: Copy> OptionCodeMap<T>
Sourcepub fn put(&mut self, option_code: OptionCode, value: T) -> Option<T>
pub fn put(&mut self, option_code: OptionCode, value: T) -> Option<T>
Puts (option_code, value)
into the map, returning the previously-associated
value if is one.
Trait Implementations§
Source§impl<T: Clone> Clone for OptionCodeMap<T>
impl<T: Clone> Clone for OptionCodeMap<T>
Source§fn clone(&self) -> OptionCodeMap<T>
fn clone(&self) -> OptionCodeMap<T>
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<T: Debug> Debug for OptionCodeMap<T>
impl<T: Debug> Debug for OptionCodeMap<T>
Source§impl<T: Copy> Default for OptionCodeMap<T>
impl<T: Copy> Default for OptionCodeMap<T>
Source§impl<V: Copy> FromIterator<(OptionCode, V)> for OptionCodeMap<V>
impl<V: Copy> FromIterator<(OptionCode, V)> for OptionCodeMap<V>
Source§fn from_iter<T: IntoIterator<Item = (OptionCode, V)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (OptionCode, V)>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl<T: PartialEq> PartialEq for OptionCodeMap<T>
impl<T: PartialEq> PartialEq for OptionCodeMap<T>
impl<T> StructuralPartialEq for OptionCodeMap<T>
Auto Trait Implementations§
impl<T> Freeze for OptionCodeMap<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionCodeMap<T>where
T: RefUnwindSafe,
impl<T> Send for OptionCodeMap<T>where
T: Send,
impl<T> Sync for OptionCodeMap<T>where
T: Sync,
impl<T> Unpin for OptionCodeMap<T>where
T: Unpin,
impl<T> UnwindSafe for OptionCodeMap<T>where
T: UnwindSafe,
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
)