Struct dhcp_client_core::parse::OptionCodeMap
source · 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>
source§fn eq(&self, other: &OptionCodeMap<T>) -> bool
fn eq(&self, other: &OptionCodeMap<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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