pub enum LiteralKind {
Address,
Boolean,
Field,
Group,
Integer(IntegerLiteralKind),
None,
Scalar,
Unsuffixed,
String,
}Variants§
Trait Implementations§
Source§impl Clone for LiteralKind
impl Clone for LiteralKind
Source§fn clone(&self) -> LiteralKind
fn clone(&self) -> LiteralKind
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 Debug for LiteralKind
impl Debug for LiteralKind
Source§impl From<IntegerLiteralKind> for LiteralKind
impl From<IntegerLiteralKind> for LiteralKind
Source§fn from(value: IntegerLiteralKind) -> Self
fn from(value: IntegerLiteralKind) -> Self
Converts to this type from the input type.
Source§impl From<LiteralKind> for ExpressionKind
impl From<LiteralKind> for ExpressionKind
Source§fn from(value: LiteralKind) -> Self
fn from(value: LiteralKind) -> Self
Converts to this type from the input type.
Source§impl From<LiteralKind> for SyntaxKind
impl From<LiteralKind> for SyntaxKind
Source§fn from(value: LiteralKind) -> Self
fn from(value: LiteralKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LiteralKind
impl PartialEq for LiteralKind
impl Copy for LiteralKind
impl Eq for LiteralKind
impl StructuralPartialEq for LiteralKind
Auto Trait Implementations§
impl Freeze for LiteralKind
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin for LiteralKind
impl UnwindSafe for LiteralKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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