Enum rustc_passes::stability::AnnotationKind
source · [−]enum AnnotationKind {
Required,
Prohibited,
DeprecationProhibited,
Container,
}
Variants
Required
Annotation is required if not inherited from unstable parents.
Prohibited
Annotation is useless, reject it.
DeprecationProhibited
Deprecation annotation is useless, reject it. (Stability attribute is still required.)
Container
Annotation itself is useless, but it can be propagated to children.
Trait Implementations
sourceimpl PartialEq<AnnotationKind> for AnnotationKind
impl PartialEq<AnnotationKind> for AnnotationKind
sourcefn eq(&self, other: &AnnotationKind) -> bool
fn eq(&self, other: &AnnotationKind) -> bool
impl StructuralPartialEq for AnnotationKind
Auto Trait Implementations
impl RefUnwindSafe for AnnotationKind
impl Send for AnnotationKind
impl Sync for AnnotationKind
impl Unpin for AnnotationKind
impl UnwindSafe for AnnotationKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 1 byte
Size for each variant:
Required
: 0 bytesProhibited
: 0 bytesDeprecationProhibited
: 0 bytesContainer
: 0 bytes