pub enum Element<'a> {
    Nil,
    Bytes(Bytes<'a>),
    String(Cow<'a, str>),
    Tuple(Vec<Element<'a>>),
    Int(i64),
    BigInt(BigInt),
    Float(f32),
    Double(f64),
    Bool(bool),
    Uuid(Uuid),
    Versionstamp(Versionstamp),
}Variants§
Nil
Bytes(Bytes<'a>)
String(Cow<'a, str>)
Tuple(Vec<Element<'a>>)
Int(i64)
BigInt(BigInt)
Float(f32)
Double(f64)
Bool(bool)
Uuid(Uuid)
Versionstamp(Versionstamp)
Implementations§
Source§impl<'a> Element<'a>
 
impl<'a> Element<'a>
pub fn into_owned(self) -> Element<'static>
pub fn as_bytes(&self) -> Option<&Bytes<'_>>
pub fn as_str(&self) -> Option<&str>
pub fn as_tuple(&self) -> Option<&[Element<'a>]>
pub fn as_i64(&self) -> Option<i64>
pub fn as_bigint(&self) -> Option<&BigInt>
pub fn as_f32(&self) -> Option<f32>
pub fn as_f64(&self) -> Option<f64>
pub fn as_bool(&self) -> Option<bool>
pub fn as_uuid(&self) -> Option<&Uuid>
pub fn as_versionstamp(&self) -> Option<&Versionstamp>
Trait Implementations§
Source§impl Ord for Element<'_>
 
impl Ord for Element<'_>
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 PartialOrd for Element<'_>
 
impl PartialOrd for Element<'_>
Source§impl TuplePack for Element<'_>
 
impl TuplePack for Element<'_>
fn pack<W>(
    &self,
    w: &mut W,
    tuple_depth: TupleDepth,
) -> Result<VersionstampOffset, Error>where
    W: Write,
fn pack_root<W>(&self, w: &mut W) -> Result<VersionstampOffset, Error>where
    W: Write,
Source§fn pack_to_vec_with_versionstamp(&self) -> Vec<u8> ⓘ
 
fn pack_to_vec_with_versionstamp(&self) -> Vec<u8> ⓘ
Pack value and returns the packed buffer Read more
Source§fn pack_into_vec(&self, output: &mut Vec<u8>) -> VersionstampOffset
 
fn pack_into_vec(&self, output: &mut Vec<u8>) -> VersionstampOffset
Pack value into the given buffer Read more
Source§fn pack_into_vec_with_versionstamp(
    &self,
    output: &mut Vec<u8>,
) -> VersionstampOffset
 
fn pack_into_vec_with_versionstamp( &self, output: &mut Vec<u8>, ) -> VersionstampOffset
Pack value into the given buffer Read more
Source§impl<'de> TupleUnpack<'de> for Element<'de>
 
impl<'de> TupleUnpack<'de> for Element<'de>
impl Eq for Element<'_>
Auto Trait Implementations§
impl<'a> Freeze for Element<'a>
impl<'a> RefUnwindSafe for Element<'a>
impl<'a> Send for Element<'a>
impl<'a> Sync for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> UnwindSafe for Element<'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