Enum protokit_binformat::value::Value
source · pub enum Value<B> {
Varint(u64),
Fixed32(u32),
Fixed64(u64),
Bytes(B),
Group(Vec<Field<B>>),
}
Expand description
Single protobuf value
Variants§
Trait Implementations§
source§impl<B: Ord> Ord for Value<B>
impl<B: Ord> Ord for Value<B>
source§impl<B: PartialEq> PartialEq for Value<B>
impl<B: PartialEq> PartialEq for Value<B>
source§impl<B: PartialOrd> PartialOrd for Value<B>
impl<B: PartialOrd> PartialOrd for Value<B>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<B: Eq> Eq for Value<B>
impl<B> StructuralPartialEq for Value<B>
Auto Trait Implementations§
impl<B> Freeze for Value<B>where
B: Freeze,
impl<B> RefUnwindSafe for Value<B>where
B: RefUnwindSafe,
impl<B> Send for Value<B>where
B: Send,
impl<B> Sync for Value<B>where
B: Sync,
impl<B> Unpin for Value<B>where
B: Unpin,
impl<B> UnwindSafe for Value<B>where
B: 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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.