#[repr(u8)]pub enum BuiltinType {
Show 20 variants
Int = 0,
Integer = 1,
Float = 2,
Double = 3,
String = 4,
Bool = 5,
Boolean = 6,
Void = 7,
Never = 8,
Mixed = 9,
Object = 10,
Iterable = 11,
Callable = 12,
Array = 13,
Self_ = 14,
Parent_ = 15,
Static = 16,
Null = 17,
True = 18,
False = 19,
}Expand description
PHP built-in type keyword — zero-cost alternative to Name::Simple for the
20 reserved type names. One byte instead of a Cow<str> + Span in the AST.
Variants§
Int = 0
Integer = 1
Float = 2
Double = 3
String = 4
Bool = 5
Boolean = 6
Void = 7
Never = 8
Mixed = 9
Object = 10
Iterable = 11
Callable = 12
Array = 13
Self_ = 14
Parent_ = 15
Static = 16
Null = 17
True = 18
False = 19
Implementations§
Trait Implementations§
Source§impl Clone for BuiltinType
impl Clone for BuiltinType
Source§fn clone(&self) -> BuiltinType
fn clone(&self) -> BuiltinType
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 BuiltinType
impl Debug for BuiltinType
Source§impl PartialEq for BuiltinType
impl PartialEq for BuiltinType
Source§impl Serialize for BuiltinType
impl Serialize for BuiltinType
impl Copy for BuiltinType
impl Eq for BuiltinType
impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
impl Freeze for BuiltinType
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnsafeUnpin for BuiltinType
impl UnwindSafe for BuiltinType
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