#[repr(u8)]pub enum TempestValue<'a> {
Int64(i64),
Bool(bool),
String(Cow<'a, str>),
Enum {
type_id: u32,
variant_id: u32,
fields: Vec<TempestValue<'a>>,
},
}Variants§
Implementations§
Source§impl<'a> TempestValue<'a>
impl<'a> TempestValue<'a>
pub fn ty(&self) -> TempestType
pub fn encode(&self, buf: &mut BytesMut)
pub fn decode( buf: &mut Bytes, ty: TempestType, ) -> Result<TempestValue<'static>, RawDecodeError>
pub fn encode_lexical(&self, buf: &mut BytesMut)
pub fn decode_lexical( buf: &mut Bytes, ty: TempestType, ) -> Result<TempestValue<'static>, LexicalDecodeError>
Trait Implementations§
Source§impl<'a> Clone for TempestValue<'a>
impl<'a> Clone for TempestValue<'a>
Source§fn clone(&self) -> TempestValue<'a>
fn clone(&self) -> TempestValue<'a>
Returns a duplicate 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<'a> Debug for TempestValue<'a>
impl<'a> Debug for TempestValue<'a>
Source§impl<'a> Display for TempestValue<'a>
impl<'a> Display for TempestValue<'a>
Source§impl<'a> Ord for TempestValue<'a>
impl<'a> Ord for TempestValue<'a>
Source§fn cmp(&self, other: &TempestValue<'a>) -> Ordering
fn cmp(&self, other: &TempestValue<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for TempestValue<'a>
impl<'a> PartialEq for TempestValue<'a>
Source§impl<'a> PartialOrd for TempestValue<'a>
impl<'a> PartialOrd for TempestValue<'a>
impl<'a> Eq for TempestValue<'a>
impl<'a> StructuralPartialEq for TempestValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for TempestValue<'a>
impl<'a> RefUnwindSafe for TempestValue<'a>
impl<'a> Send for TempestValue<'a>
impl<'a> Sync for TempestValue<'a>
impl<'a> Unpin for TempestValue<'a>
impl<'a> UnsafeUnpin for TempestValue<'a>
impl<'a> UnwindSafe for TempestValue<'a>
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more