#[repr(u8)]pub enum ValueType {
Null = 2,
Int64 = 3,
Uint64 = 4,
Double = 5,
Boolean = 6,
String = 16,
Any = 17,
Composite = 18,
}Expand description
EValueType — yt/yt/client/table_client/row_base.h.
The numbering is not dense: the scalar types are 0x02..0x06 and the string-like ones start again at 0x10.
Variants§
Implementations§
Source§impl ValueType
impl ValueType
Sourcepub fn is_string_like(self) -> bool
pub fn is_string_like(self) -> bool
Whether values of this type carry their payload as a length-prefixed blob rather than in an 8-byte word.
Composite belongs here. The Go SDK’s reader agrees, but its writer
omits Composite from the branch that writes the blob, so a composite
value it encodes loses its payload; this crate follows the C++, where
IsStringLikeType covers String, Any and Composite alike. See
docs/rpc-compatibility.md.
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueType
impl UnwindSafe for ValueType
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