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
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Annotation
impl !Send for Annotation
impl !Sync for Annotation
impl !UnwindSafe for Annotation
impl Freeze 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