Enum move_lang::diagnostics::codes::ReferenceSafety
source · #[repr(u8)]
pub enum ReferenceSafety {
DontStartAtZeroPlaceholder,
RefTrans,
MutOwns,
Dangling,
InvalidReturn,
InvalidTransfer,
}
Variants§
Trait Implementations§
source§impl Clone for ReferenceSafety
impl Clone for ReferenceSafety
source§fn clone(&self) -> ReferenceSafety
fn clone(&self) -> ReferenceSafety
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 ReferenceSafety
impl Debug for ReferenceSafety
source§impl DiagnosticCode for ReferenceSafety
impl DiagnosticCode for ReferenceSafety
source§impl Hash for ReferenceSafety
impl Hash for ReferenceSafety
source§impl PartialEq<ReferenceSafety> for ReferenceSafety
impl PartialEq<ReferenceSafety> for ReferenceSafety
source§fn eq(&self, other: &ReferenceSafety) -> bool
fn eq(&self, other: &ReferenceSafety) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ReferenceSafety
impl Eq for ReferenceSafety
impl StructuralEq for ReferenceSafety
impl StructuralPartialEq for ReferenceSafety
Auto Trait Implementations§
impl RefUnwindSafe for ReferenceSafety
impl Send for ReferenceSafety
impl Sync for ReferenceSafety
impl Unpin for ReferenceSafety
impl UnwindSafe for ReferenceSafety
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.