pub enum GeneratedAttr {
AutomaticallyDerived,
RustcConstUnstableDerived,
Inline,
DocHidden,
CoverageOff,
RustcTestMarker(Symbol),
}Expand description
An attribute created by a macro expansion.
This attribute has no tokens, which means it cannot be allowed to re-enter the parser. This means it can only be added to items that cannot later be observed by other macros.
Variants§
AutomaticallyDerived
RustcConstUnstableDerived
Inline
DocHidden
CoverageOff
RustcTestMarker(Symbol)
Implementations§
Source§impl GeneratedAttr
impl GeneratedAttr
pub fn descr(&self) -> String
pub fn value_span(&self) -> Option<Span>
pub fn is_doc_comment(&self) -> Option<Span>
pub fn name(&self) -> Option<Symbol>
pub fn path_matches(&self, name: &[Symbol]) -> bool
pub fn symbol_path(&self) -> Option<SmallVec<[Symbol; 1]>>
pub fn path_span(&self) -> Option<Span>
pub fn is_word(&self) -> bool
pub fn value_str(&self) -> Option<Symbol>
pub fn doc_str_and_fragment_kind(&self) -> Option<!>
pub fn token_trees(&self) -> Vec<TokenTree>
Trait Implementations§
Source§impl Clone for GeneratedAttr
impl Clone for GeneratedAttr
Source§impl Debug for GeneratedAttr
impl Debug for GeneratedAttr
Source§impl<__D: SpanDecoder> Decodable<__D> for GeneratedAttr
impl<__D: SpanDecoder> Decodable<__D> for GeneratedAttr
Source§impl<__E: SpanEncoder> Encodable<__E> for GeneratedAttr
impl<__E: SpanEncoder> Encodable<__E> for GeneratedAttr
Source§impl<V: MutVisitor> MutVisitable<V> for GeneratedAttr
impl<V: MutVisitor> MutVisitable<V> for GeneratedAttr
Source§impl<__V> MutWalkable<__V> for GeneratedAttrwhere
__V: MutVisitor,
impl<__V> MutWalkable<__V> for GeneratedAttrwhere
__V: MutVisitor,
Source§impl<'a, V: Visitor<'a>> Visitable<'a, V> for GeneratedAttr
impl<'a, V: Visitor<'a>> Visitable<'a, V> for GeneratedAttr
Auto Trait Implementations§
impl DynSend for GeneratedAttr
impl DynSync for GeneratedAttr
impl Freeze for GeneratedAttr
impl RefUnwindSafe for GeneratedAttr
impl Send for GeneratedAttr
impl Sync for GeneratedAttr
impl Unpin for GeneratedAttr
impl UnsafeUnpin for GeneratedAttr
impl UnwindSafe for GeneratedAttr
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 4 bytes
Size for each variant:
AutomaticallyDerived: 0 bytesRustcConstUnstableDerived: 0 bytesInline: 0 bytesDocHidden: 0 bytesCoverageOff: 0 bytesRustcTestMarker: 4 bytes