pub enum AttributeKind {
Align {
align: Align,
span: Span,
},
AutomaticallyDerived(Span),
Coverage(Span, CoverageStatus),
Deprecation {
deprecation: Deprecation,
span: Span,
},
DocComment {
style: AttrStyle,
kind: CommentKind,
span: Span,
comment: Symbol,
},
Ignore {
span: Span,
reason: Option<Symbol>,
},
Marker(Span),
MayDangle(Span),
MustUse {
span: Span,
reason: Option<Symbol>,
},
Path(Symbol, Span),
Todo(String),
}
Expand description
Reflects [rustc_attr_data_structures::AttributeKind
]
Variants§
Align
AutomaticallyDerived(Span)
Coverage(Span, CoverageStatus)
Deprecation
DocComment
Ignore
Marker(Span)
MayDangle(Span)
MustUse
Path(Symbol, Span)
Todo(String)
Trait Implementations§
Source§impl Clone for AttributeKind
impl Clone for AttributeKind
Source§fn clone(&self) -> AttributeKind
fn clone(&self) -> AttributeKind
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 AttributeKind
impl Debug for AttributeKind
Source§impl<'de> Deserialize<'de> for AttributeKind
impl<'de> Deserialize<'de> for AttributeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AttributeKind
impl Hash for AttributeKind
Source§impl JsonSchema for AttributeKind
impl JsonSchema for AttributeKind
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for AttributeKind
impl Ord for AttributeKind
Source§fn cmp(&self, other: &AttributeKind) -> Ordering
fn cmp(&self, other: &AttributeKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeKind
impl PartialEq for AttributeKind
Source§impl PartialOrd for AttributeKind
impl PartialOrd for AttributeKind
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, AttributeKind> for AttributeKind
impl<'tcx, S: BaseState<'tcx>> SInto<S, AttributeKind> for AttributeKind
fn sinto(&self, tcx: &S) -> AttributeKind
Source§impl Serialize for AttributeKind
impl Serialize for AttributeKind
impl Eq for AttributeKind
impl StructuralPartialEq for AttributeKind
Auto Trait Implementations§
impl Freeze for AttributeKind
impl RefUnwindSafe for AttributeKind
impl Send for AttributeKind
impl Sync for AttributeKind
impl Unpin for AttributeKind
impl UnwindSafe for AttributeKind
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 more