Struct solang_parser::doccomment::DocCommentTag
source · pub struct DocCommentTag {
pub tag: String,
pub tag_offset: usize,
pub value: String,
pub value_offset: usize,
}Expand description
A Solidity doc comment’s tag, value and respective offsets.
Fields§
§tag: StringThe tag of the doc comment, like the notice in /// @notice Doc comment value
tag_offset: usizeThe offset of the comment’s tag, relative to the start of the source string.
value: StringThe actual comment string, like Doc comment value in /// @notice Doc comment value
value_offset: usizeThe offset of the comment’s value, relative to the start of the source string.
Trait Implementations§
source§impl Clone for DocCommentTag
impl Clone for DocCommentTag
source§fn clone(&self) -> DocCommentTag
fn clone(&self) -> DocCommentTag
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 Debug for DocCommentTag
impl Debug for DocCommentTag
source§impl Default for DocCommentTag
impl Default for DocCommentTag
source§fn default() -> DocCommentTag
fn default() -> DocCommentTag
Returns the “default value” for a type. Read more
source§impl PartialEq<DocCommentTag> for DocCommentTag
impl PartialEq<DocCommentTag> for DocCommentTag
source§fn eq(&self, other: &DocCommentTag) -> bool
fn eq(&self, other: &DocCommentTag) -> bool
This method tests for
self and other values to be equal, and is used
by ==.