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: String
The tag of the doc comment, like the notice
in /// @notice Doc comment value
tag_offset: usize
The offset of the comment’s tag, relative to the start of the source string.
value: String
The actual comment string, like Doc comment value
in /// @notice Doc comment value
value_offset: usize
The 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 for DocCommentTag
impl PartialEq 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 ==
.impl Eq for DocCommentTag
impl StructuralPartialEq for DocCommentTag
Auto Trait Implementations§
impl Freeze for DocCommentTag
impl RefUnwindSafe for DocCommentTag
impl Send for DocCommentTag
impl Sync for DocCommentTag
impl Unpin for DocCommentTag
impl UnwindSafe for DocCommentTag
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more