pub enum PHPType {
}Expand description
PHP type for type hints and declarations.
Variants§
Int
int
Float
float
String
string
Bool
bool
Array
array
Null
null
Mixed
mixed
Callable
callable
Void
void
Never
never
Object
object
Iterable
iterable
Nullable(Box<PHPType>)
?T (nullable type)
Union(Vec<PHPType>)
T1|T2|... (union type)
Intersection(Vec<PHPType>)
T1&T2&... (intersection type, PHP 8.1+)
Named(String)
Named class/interface type
Self_
self
Static
static
Parent
parent
Trait Implementations§
impl Eq for PHPType
impl StructuralPartialEq for PHPType
Auto Trait Implementations§
impl Freeze for PHPType
impl RefUnwindSafe for PHPType
impl Send for PHPType
impl Sync for PHPType
impl Unpin for PHPType
impl UnsafeUnpin for PHPType
impl UnwindSafe for PHPType
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