pub struct NatSpecItem {
pub kind: NatSpecKind,
pub span: Span,
pub symbol: Symbol,
pub content_start: u32,
pub content_end: u32,
}Expand description
A single item within a Natspec comment block.
Fields§
§kind: NatSpecKindThe tag identifier of the item.
span: SpanSpan of the tag. ‘@’ is not included.
symbol: SymbolThe symbol containing this tag’s content.
content_start: u32Byte offset into the doc comment’s symbol where this tag’s content starts.
content_end: u32Byte offset into the doc comment’s symbol where this tag’s content ends.
Implementations§
Source§impl NatSpecItem
impl NatSpecItem
Trait Implementations§
Source§impl Clone for NatSpecItem
impl Clone for NatSpecItem
Source§fn clone(&self) -> NatSpecItem
fn clone(&self) -> NatSpecItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NatSpecItem
Source§impl Debug for NatSpecItem
impl Debug for NatSpecItem
Auto Trait Implementations§
impl Freeze for NatSpecItem
impl RefUnwindSafe for NatSpecItem
impl Send for NatSpecItem
impl Sync for NatSpecItem
impl Unpin for NatSpecItem
impl UnsafeUnpin for NatSpecItem
impl UnwindSafe for NatSpecItem
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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