pub enum ESExprTag<'a> {
Show 13 variants
Constructor(CowStr<'a>),
Bool,
Int,
Str,
Float16,
Float32,
Float64,
Array8,
Array16,
Array32,
Array64,
Array128,
Null,
}Expand description
An expression tag.
Variants§
Constructor(CowStr<'a>)
A tag for a constructor with a specified name.
Bool
A tag for a bool value.
Int
A tag for a int value.
Str
A tag for a str value.
Float16
A tag for a float16 value.
Float32
A tag for a float32 value.
Float64
A tag for a float64 value.
Array8
A tag for an array of 8-bit unsigned integers.
Array16
A tag for an array of 16-bit unsigned integers.
Array32
A tag for an array of 32-bit unsigned integers.
Array64
A tag for an array of 64-bit unsigned integers.
Array128
A tag for an array of 128-bit values.
Null
A tag for a null value.
Implementations§
Source§impl<'a> ESExprTag<'a>
impl<'a> ESExprTag<'a>
Sourcepub fn is_constructor(&self, s: &str) -> bool
pub fn is_constructor(&self, s: &str) -> bool
Checks whether the tag is for a constructor value.
Sourcepub fn into_owned(self) -> ESExprTag<'static>
pub fn into_owned(self) -> ESExprTag<'static>
Creates a copy of a tag without referencing the original.
Sourcepub fn as_owned(&self) -> ESExprTag<'static>
pub fn as_owned(&self) -> ESExprTag<'static>
Ensures that a tag does not reference any external data.
Sourcepub fn as_borrowed<'b>(&'b self) -> ESExprTag<'b>where
'a: 'b,
pub fn as_borrowed<'b>(&'b self) -> ESExprTag<'b>where
'a: 'b,
Creates a copy of a tag without making a deep copy.
Trait Implementations§
impl<'a> Eq for ESExprTag<'a>
impl<'a> StructuralPartialEq for ESExprTag<'a>
Auto Trait Implementations§
impl<'a> Freeze for ESExprTag<'a>
impl<'a> RefUnwindSafe for ESExprTag<'a>
impl<'a> Send for ESExprTag<'a>
impl<'a> Sync for ESExprTag<'a>
impl<'a> Unpin for ESExprTag<'a>
impl<'a> UnwindSafe for ESExprTag<'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