Struct solang_parser::pt::Annotation
source · pub struct Annotation {
pub loc: Loc,
pub id: Identifier,
pub value: Option<Expression>,
}
Expand description
An annotation.
@<id>(<value>)
Fields§
§loc: Loc
The code location.
id: Identifier
The identifier.
value: Option<Expression>
The 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 for Annotation
impl PartialEq 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 ==
.impl Eq for Annotation
impl StructuralEq for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe 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