Enum vortex_proto::scalar::scalar_value::Kind
source · pub enum Kind {
NullValue(i32),
BoolValue(bool),
Int32Value(i32),
Int64Value(i64),
Uint32Value(u32),
Uint64Value(u64),
FloatValue(f32),
DoubleValue(f64),
StringValue(String),
BytesValue(Vec<u8>),
ListValue(ListValue),
}
Variants§
NullValue(i32)
BoolValue(bool)
Int32Value(i32)
Int64Value(i64)
Uint32Value(u32)
Uint64Value(u64)
FloatValue(f32)
DoubleValue(f64)
StringValue(String)
BytesValue(Vec<u8>)
ListValue(ListValue)
Implementations§
source§impl Kind
impl Kind
sourcepub fn merge(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Kind>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
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§
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)