pub struct Decorator {
pub path: Path,
pub args: Vec<Arg>,
}Expand description
One decorator: @path(args).
Fields§
§path: PathThe name applied.
args: Vec<Arg>Its arguments; empty means the decorator is written bare, with no
parentheses at all. @dataclasses.dataclass and
@dataclasses.dataclass() are the same thing, and the bare form
is the conventional one.
Trait Implementations§
impl Eq for Decorator
impl StructuralPartialEq for Decorator
Auto Trait Implementations§
impl Freeze for Decorator
impl RefUnwindSafe for Decorator
impl Send for Decorator
impl Sync for Decorator
impl Unpin for Decorator
impl UnsafeUnpin 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