Struct ExprCast
pub struct ExprCast {
pub expr: Box<Expr>,
pub ty: Type,
}Expand description
A type cast expression.
Converts an expression’s value to a different type.
§Examples
cast(x, i64) // cast `x` to `i64`
cast(y, string) // cast `y` to `string`Fields§
§expr: Box<Expr>The expression to cast.
ty: TypeThe target type.
Trait Implementations§
impl StructuralPartialEq for ExprCast
Auto Trait Implementations§
impl Freeze for ExprCast
impl RefUnwindSafe for ExprCast
impl Send for ExprCast
impl Sync for ExprCast
impl Unpin for ExprCast
impl UnwindSafe for ExprCast
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