Struct erg_parser::ast::ReDef
source · pub struct ReDef {
pub attr: Accessor,
pub expr: Box<Expr>,
}
Expand description
This is not necessary for Erg syntax, but necessary for mapping ASTs in Python
Fields§
§attr: Accessor
§expr: Box<Expr>
Implementations§
Trait Implementations§
source§impl Locational for ReDef
impl Locational for ReDef
source§impl NestedDisplay for ReDef
impl NestedDisplay for ReDef
source§impl PartialEq for ReDef
impl PartialEq for ReDef
impl Eq for ReDef
impl StructuralPartialEq for ReDef
Auto Trait Implementations§
impl Freeze for ReDef
impl RefUnwindSafe for ReDef
impl Send for ReDef
impl Sync for ReDef
impl Unpin for ReDef
impl UnwindSafe for ReDef
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