Struct erg_parser::ast::Decorator
source · pub struct Decorator(pub Expr);
Expand description
デコレータは関数を返す関数オブジェクトならば何でも指定できる e.g. @(x -> x)
Tuple Fields§
§0: Expr
Implementations§
Trait Implementations§
source§impl PartialEq for Decorator
impl PartialEq for Decorator
impl Eq for Decorator
impl StructuralEq for Decorator
impl StructuralPartialEq for Decorator
Auto Trait Implementations§
impl RefUnwindSafe for Decorator
impl Send for Decorator
impl Sync for Decorator
impl Unpin for Decorator
impl UnwindSafe for Decorator
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