Struct solang_parser::pt::Annotation
source · pub struct Annotation {
pub loc: Loc,
pub id: Identifier,
pub value: Expression,
}Expand description
An annotation.
@<id>(<value>)
Fields§
§loc: LocThe code location.
id: IdentifierThe identifier.
value: ExpressionThe value.
Trait Implementations§
source§impl Clone for Annotation
impl Clone for Annotation
source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CodeLocation for Annotation
impl CodeLocation for Annotation
source§impl Debug for Annotation
impl Debug for Annotation
source§impl Display for Annotation
impl Display for Annotation
source§impl OptionalCodeLocation for Annotation
impl OptionalCodeLocation for Annotation
source§impl PartialEq<Annotation> for Annotation
impl PartialEq<Annotation> for Annotation
source§fn eq(&self, other: &Annotation) -> bool
fn eq(&self, other: &Annotation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.