Enum erg_compiler::ty::CastTarget
source · pub enum CastTarget {
Param {
nth: usize,
name: Str,
loc: Location,
},
Var {
name: Str,
loc: Location,
},
Expr(Box<Expr>),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for CastTarget
impl Clone for CastTarget
source§fn clone(&self) -> CastTarget
fn clone(&self) -> CastTarget
Returns a copy 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 CastTarget
impl Debug for CastTarget
source§impl Display for CastTarget
impl Display for CastTarget
source§impl Hash for CastTarget
impl Hash for CastTarget
source§impl Locational for CastTarget
impl Locational for CastTarget
source§impl PartialEq for CastTarget
impl PartialEq for CastTarget
source§fn eq(&self, other: &CastTarget) -> bool
fn eq(&self, other: &CastTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CastTarget
impl StructuralPartialEq for CastTarget
Auto Trait Implementations§
impl RefUnwindSafe for CastTarget
impl Send for CastTarget
impl Sync for CastTarget
impl Unpin for CastTarget
impl UnwindSafe for CastTarget
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