pub enum KeyOrInternedKey {
Key(String),
KeyIid(u64),
}
Variants§
Implementations§
Source§impl KeyOrInternedKey
impl KeyOrInternedKey
Sourcepub fn merge<B>(
field: &mut Option<KeyOrInternedKey>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<KeyOrInternedKey>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for KeyOrInternedKey
impl Clone for KeyOrInternedKey
Source§fn clone(&self) -> KeyOrInternedKey
fn clone(&self) -> KeyOrInternedKey
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 KeyOrInternedKey
impl Debug for KeyOrInternedKey
Source§impl PartialEq for KeyOrInternedKey
impl PartialEq for KeyOrInternedKey
impl StructuralPartialEq for KeyOrInternedKey
Auto Trait Implementations§
impl Freeze for KeyOrInternedKey
impl RefUnwindSafe for KeyOrInternedKey
impl Send for KeyOrInternedKey
impl Sync for KeyOrInternedKey
impl Unpin for KeyOrInternedKey
impl UnwindSafe for KeyOrInternedKey
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