pub struct DictionaryItem {
pub key: String,
pub value: u64,
}
Expand description
A key-value pair in a DictionaryRef
.
Fields§
§key: String
§value: u64
Trait Implementations§
Source§impl Clone for DictionaryItem
impl Clone for DictionaryItem
Source§fn clone(&self) -> DictionaryItem
fn clone(&self) -> DictionaryItem
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 DictionaryItem
impl Debug for DictionaryItem
Source§impl Encodable for DictionaryItem
impl Encodable for DictionaryItem
Source§type Encoded = WireDictionaryItem
type Encoded = WireDictionaryItem
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<DictionaryItem>
impl EncodableOption for Box<DictionaryItem>
Source§type EncodedOption = WireBox<WireDictionaryItem>
type EncodedOption = WireBox<WireDictionaryItem>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for DictionaryItemwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for DictionaryItemwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<DictionaryItem>where
___E: Encoder + ?Sized,
DictionaryItem: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<DictionaryItem>where
___E: Encoder + ?Sized,
DictionaryItem: 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<WireDictionaryItem> for DictionaryItem
impl TakeFrom<WireDictionaryItem> for DictionaryItem
Source§fn take_from(from: &WireDictionaryItem) -> Self
fn take_from(from: &WireDictionaryItem) -> 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 DictionaryItem
impl RefUnwindSafe for DictionaryItem
impl Send for DictionaryItem
impl Sync for DictionaryItem
impl Unpin for DictionaryItem
impl UnwindSafe for DictionaryItem
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