pub enum HeaderValidationCode {
SyntaxError,
DuplicateDeclaration,
ConflictingRedeclaration,
UnresolvedType,
UnresolvedOwner,
InvalidLinkage,
InvalidStorage,
InvalidCallingConvention,
IncompleteTemplateContext,
SelectorArityMismatch,
ObjectiveCKindMismatch,
DependencyCycle,
}Expand description
Stable semantic validation diagnostic code.
Variants§
SyntaxError
Concrete syntax was invalid.
DuplicateDeclaration
The same declaration was repeated.
ConflictingRedeclaration
Declarations with the same identity disagree.
UnresolvedType
A tagged type has no declaration.
UnresolvedOwner
A declaration owner has no declaration.
InvalidLinkage
The declared linkage is incompatible with the language.
InvalidStorage
The storage class is incompatible with the declaration.
InvalidCallingConvention
The calling convention is incompatible with the language.
IncompleteTemplateContext
A template could not be represented completely.
SelectorArityMismatch
An Objective-C selector’s colon count differs from its parameter count.
ObjectiveCKindMismatch
An Objective-C reference resolves to the wrong entity kind.
DependencyCycle
The declaration dependency graph contains a cycle.
Trait Implementations§
Source§impl Clone for HeaderValidationCode
impl Clone for HeaderValidationCode
Source§fn clone(&self) -> HeaderValidationCode
fn clone(&self) -> HeaderValidationCode
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 HeaderValidationCode
Source§impl Debug for HeaderValidationCode
impl Debug for HeaderValidationCode
impl Eq for HeaderValidationCode
Source§impl Hash for HeaderValidationCode
impl Hash for HeaderValidationCode
Source§impl PartialEq for HeaderValidationCode
impl PartialEq for HeaderValidationCode
impl StructuralPartialEq for HeaderValidationCode
Auto Trait Implementations§
impl Freeze for HeaderValidationCode
impl RefUnwindSafe for HeaderValidationCode
impl Send for HeaderValidationCode
impl Sync for HeaderValidationCode
impl Unpin for HeaderValidationCode
impl UnsafeUnpin for HeaderValidationCode
impl UnwindSafe for HeaderValidationCode
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