pub struct Annotation {
pub name: String,
pub args: Vec<Rc<Expr>>,
pub loc: Option<Loc>,
}Expand description
an annotation (§5.10): @name or @name(args) — metadata only (D4)
Fields§
§name: Stringthe name
args: Vec<Rc<Expr>>the arguments
loc: Option<Loc>the source range
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Auto Trait Implementations§
impl !RefUnwindSafe for Annotation
impl !Send for Annotation
impl !Sync for Annotation
impl !UnwindSafe for Annotation
impl Forget for Annotation
impl Freeze for Annotation
impl Move for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
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