Enum move_lang::diagnostics::codes::Declarations
source · #[repr(u8)]
pub enum Declarations {
Show 15 variants
DontStartAtZeroPlaceholder,
DuplicateItem,
UnnecessaryItem,
InvalidAddress,
InvalidModule,
InvalidScript,
InvalidConstant,
InvalidFunction,
InvalidStruct,
InvalidSpec,
InvalidName,
InvalidFriendDeclaration,
InvalidAcquiresItem,
InvalidPhantomUse,
InvalidNonPhantomUse,
}
Variants§
DontStartAtZeroPlaceholder
DuplicateItem
UnnecessaryItem
InvalidAddress
InvalidModule
InvalidScript
InvalidConstant
InvalidFunction
InvalidStruct
InvalidSpec
InvalidName
InvalidFriendDeclaration
InvalidAcquiresItem
InvalidPhantomUse
InvalidNonPhantomUse
Trait Implementations§
source§impl Clone for Declarations
impl Clone for Declarations
source§fn clone(&self) -> Declarations
fn clone(&self) -> Declarations
Returns a copy 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 Declarations
impl Debug for Declarations
source§impl DiagnosticCode for Declarations
impl DiagnosticCode for Declarations
source§impl Hash for Declarations
impl Hash for Declarations
source§impl PartialEq<Declarations> for Declarations
impl PartialEq<Declarations> for Declarations
source§fn eq(&self, other: &Declarations) -> bool
fn eq(&self, other: &Declarations) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Declarations
impl Eq for Declarations
impl StructuralEq for Declarations
impl StructuralPartialEq for Declarations
Auto Trait Implementations§
impl RefUnwindSafe for Declarations
impl Send for Declarations
impl Sync for Declarations
impl Unpin for Declarations
impl UnwindSafe for Declarations
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.