Enum paralegal_spdg::rustc::mir::Safety
source · pub enum Safety {
Safe,
BuiltinUnsafe,
FnUnsafe,
ExplicitUnsafe(HirId),
}
Variants§
Safe
BuiltinUnsafe
Unsafe because of compiler-generated unsafe code, like await
desugaring
FnUnsafe
Unsafe because of an unsafe fn
ExplicitUnsafe(HirId)
Unsafe because of an unsafe
block
Auto Trait Implementations§
impl RefUnwindSafe for Safety
impl Send for Safety
impl Sync for Safety
impl Unpin for Safety
impl UnwindSafe for Safety
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<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.