pub struct DictionaryEntry {
pub key: String,
pub value: Option<Box<DictionaryValue>>,
}
Expand description
A key/value pair in a Dictionary
.
Fields§
§key: String
§value: Option<Box<DictionaryValue>>
Trait Implementations§
Source§impl Clone for DictionaryEntry
impl Clone for DictionaryEntry
Source§fn clone(&self) -> DictionaryEntry
fn clone(&self) -> DictionaryEntry
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 DictionaryEntry
impl Debug for DictionaryEntry
Source§impl Encodable for DictionaryEntry
impl Encodable for DictionaryEntry
Source§type Encoded = WireDictionaryEntry
type Encoded = WireDictionaryEntry
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<DictionaryEntry>
impl EncodableOption for Box<DictionaryEntry>
Source§type EncodedOption = WireBox<WireDictionaryEntry>
type EncodedOption = WireBox<WireDictionaryEntry>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for DictionaryEntrywhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for DictionaryEntrywhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<DictionaryEntry>where
___E: Encoder + ?Sized,
DictionaryEntry: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<DictionaryEntry>where
___E: Encoder + ?Sized,
DictionaryEntry: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireDictionaryEntry> for DictionaryEntry
impl TakeFrom<WireDictionaryEntry> for DictionaryEntry
Source§fn take_from(from: &WireDictionaryEntry) -> Self
fn take_from(from: &WireDictionaryEntry) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for DictionaryEntry
impl RefUnwindSafe for DictionaryEntry
impl Send for DictionaryEntry
impl Sync for DictionaryEntry
impl Unpin for DictionaryEntry
impl UnwindSafe for DictionaryEntry
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