#[repr(C)]pub enum TypeTokenKind {
Show 83 variants
Int = 0,
String = 1,
Float = 2,
Bool = 3,
False = 4,
True = 5,
Object = 6,
Callable = 7,
Array = 8,
NonEmptyArray = 9,
NonEmptyString = 10,
LowercaseString = 11,
TruthyString = 12,
Iterable = 13,
Null = 14,
Mixed = 15,
NumericString = 16,
ClassString = 17,
InterfaceString = 18,
TraitString = 19,
EnumString = 20,
StringableObject = 21,
PureCallable = 22,
PureClosure = 23,
UnspecifiedLiteralString = 24,
UnspecifiedLiteralInt = 25,
NonEmptyUnspecifiedLiteralString = 26,
Resource = 27,
Void = 28,
Scalar = 29,
Numeric = 30,
NoReturn = 31,
NeverReturn = 32,
NeverReturns = 33,
Never = 34,
Nothing = 35,
ArrayKey = 36,
List = 37,
NonEmptyList = 38,
OpenResource = 39,
ClosedResource = 40,
AssociativeArray = 41,
KeyOf = 42,
ValueOf = 43,
Min = 44,
Max = 45,
PropertiesOf = 46,
PublicPropertiesOf = 47,
PrivatePropertiesOf = 48,
ProtectedPropertiesOf = 49,
PositiveInt = 50,
NegativeInt = 51,
As = 52,
Is = 53,
Not = 54,
Identifier = 55,
QualifiedIdentifier = 56,
FullyQualifiedIdentifier = 57,
Plus = 58,
Minus = 59,
LessThan = 60,
GreaterThan = 61,
Pipe = 62,
Ampersand = 63,
Question = 64,
Comma = 65,
Colon = 66,
ColonColon = 67,
LeftBrace = 68,
RightBrace = 69,
LeftBracket = 70,
RightBracket = 71,
LeftParenthesis = 72,
RightParenthesis = 73,
Equals = 74,
Ellipsis = 75,
PartialLiteralString = 76,
LiteralString = 77,
LiteralInteger = 78,
LiteralFloat = 79,
Variable = 80,
Whitespace = 81,
SingleLineComment = 82,
}Variants§
Int = 0
String = 1
Float = 2
Bool = 3
False = 4
True = 5
Object = 6
Callable = 7
Array = 8
NonEmptyArray = 9
NonEmptyString = 10
LowercaseString = 11
TruthyString = 12
Iterable = 13
Null = 14
Mixed = 15
NumericString = 16
ClassString = 17
InterfaceString = 18
TraitString = 19
EnumString = 20
StringableObject = 21
PureCallable = 22
PureClosure = 23
UnspecifiedLiteralString = 24
UnspecifiedLiteralInt = 25
NonEmptyUnspecifiedLiteralString = 26
Resource = 27
Void = 28
Scalar = 29
Numeric = 30
NoReturn = 31
NeverReturn = 32
NeverReturns = 33
Never = 34
Nothing = 35
ArrayKey = 36
List = 37
NonEmptyList = 38
OpenResource = 39
ClosedResource = 40
AssociativeArray = 41
KeyOf = 42
ValueOf = 43
Min = 44
Max = 45
PropertiesOf = 46
PublicPropertiesOf = 47
PrivatePropertiesOf = 48
ProtectedPropertiesOf = 49
PositiveInt = 50
NegativeInt = 51
As = 52
Is = 53
Not = 54
Identifier = 55
QualifiedIdentifier = 56
FullyQualifiedIdentifier = 57
Plus = 58
Minus = 59
LessThan = 60
GreaterThan = 61
Pipe = 62
Ampersand = 63
Question = 64
Comma = 65
Colon = 66
ColonColon = 67
LeftBrace = 68
RightBrace = 69
LeftBracket = 70
RightBracket = 71
LeftParenthesis = 72
RightParenthesis = 73
Equals = 74
Ellipsis = 75
PartialLiteralString = 76
LiteralString = 77
LiteralInteger = 78
LiteralFloat = 79
Variable = 80
Whitespace = 81
SingleLineComment = 82
Implementations§
Source§impl TypeTokenKind
impl TypeTokenKind
pub const fn is_trivia(&self) -> bool
pub const fn is_simple_identifier(&self) -> bool
pub const fn is_identifier(&self) -> bool
pub const fn is_keyword(&self) -> bool
pub const fn is_array_like(&self) -> bool
Trait Implementations§
Source§impl Clone for TypeTokenKind
impl Clone for TypeTokenKind
Source§fn clone(&self) -> TypeTokenKind
fn clone(&self) -> TypeTokenKind
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 TypeTokenKind
impl Debug for TypeTokenKind
Source§impl<'de> Deserialize<'de> for TypeTokenKind
impl<'de> Deserialize<'de> for TypeTokenKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TypeTokenKind
impl Display for TypeTokenKind
Source§impl Hash for TypeTokenKind
impl Hash for TypeTokenKind
Source§impl Ord for TypeTokenKind
impl Ord for TypeTokenKind
Source§fn cmp(&self, other: &TypeTokenKind) -> Ordering
fn cmp(&self, other: &TypeTokenKind) -> 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 PartialEq for TypeTokenKind
impl PartialEq for TypeTokenKind
Source§impl PartialOrd for TypeTokenKind
impl PartialOrd for TypeTokenKind
Source§impl Serialize for TypeTokenKind
impl Serialize for TypeTokenKind
impl Copy for TypeTokenKind
impl Eq for TypeTokenKind
impl StructuralPartialEq for TypeTokenKind
Auto Trait Implementations§
impl Freeze for TypeTokenKind
impl RefUnwindSafe for TypeTokenKind
impl Send for TypeTokenKind
impl Sync for TypeTokenKind
impl Unpin for TypeTokenKind
impl UnwindSafe for TypeTokenKind
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