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 duplicate 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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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