pub(crate) struct DocParser {
attribute: DocAttribute,
nb_doc_attrs: usize,
}Fields§
§attribute: DocAttribute§nb_doc_attrs: usizeImplementations§
Source§impl DocParser
impl DocParser
fn parse_single_test_doc_attr_item<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, mip: &MetaItemParser, )
fn add_alias<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, alias: Symbol, span: Span, )
fn parse_alias<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, path: &OwnedPathParser, args: &ArgParser, )
fn parse_inline<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, path: &OwnedPathParser, args: &ArgParser, inline: DocInline, )
fn parse_cfg<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, args: &ArgParser, )
fn parse_auto_cfg<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, path: &OwnedPathParser, args: &ArgParser, )
fn parse_single_doc_attr_item<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, mip: &MetaItemParser, )
fn accept_single_doc_attr<S: Stage>( &mut self, cx: &mut AcceptContext<'_, '_, S>, args: &ArgParser, )
Trait Implementations§
Source§impl<S: Stage> AttributeParser<S> for DocParser
impl<S: Stage> AttributeParser<S> for DocParser
Source§const ATTRIBUTES: &'static [(&'static [Symbol], AttributeTemplate, for<'sess> fn(&mut Self, &mut AcceptContext<'_, 'sess, S>, &ArgParser))]
const ATTRIBUTES: &'static [(&'static [Symbol], AttributeTemplate, for<'sess> fn(&mut Self, &mut AcceptContext<'_, 'sess, S>, &ArgParser))]
The symbols for the attributes that this parser is interested in. Read more
const ALLOWED_TARGETS: AllowedTargets
Source§fn finalize(self, _cx: &FinalizeContext<'_, '_, S>) -> Option<AttributeKind>
fn finalize(self, _cx: &FinalizeContext<'_, '_, S>) -> Option<AttributeKind>
The parser has gotten a chance to accept the attributes on an item,
here it can produce an attribute. Read more
Auto Trait Implementations§
impl DynSend for DocParser
impl DynSync for DocParser
impl Freeze for DocParser
impl RefUnwindSafe for DocParser
impl Send for DocParser
impl Sync for DocParser
impl Unpin for DocParser
impl UnwindSafe for DocParser
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoEither for T
impl<T> IntoEither for T
§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 more§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 288 bytes