#[non_exhaustive]pub enum CastKind {
Int,
Float,
String,
Bool,
Array,
Object,
Unset,
Void,
}Expand description
The type of a cast expression.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Int
(int) or (integer) cast.
Float
(float), (double), or (real) cast.
String
(string) cast.
Bool
(bool) or (boolean) cast.
Array
(array) cast.
Object
(object) cast.
Unset
(unset) cast — deprecated; casts to null.
Void
(void) cast — non-standard; treated as discarding the value.
Trait Implementations§
impl Copy for CastKind
impl Eq for CastKind
impl StructuralPartialEq for CastKind
Auto Trait Implementations§
impl Freeze for CastKind
impl RefUnwindSafe for CastKind
impl Send for CastKind
impl Sync for CastKind
impl Unpin for CastKind
impl UnsafeUnpin for CastKind
impl UnwindSafe for CastKind
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