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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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