Enum Safety
pub enum Safety
Variants
-
Safe -
Unsafe
Auto Trait Implementations
impl Freeze for Safety
impl RefUnwindSafe for Safety
impl Send for Safety
impl Sync for Safety
impl Unpin for Safety
impl UnsafeUnpin for Safety
impl UnwindSafe for Safety
Blanket Implementations
impl<T> Any for Safety
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Safety
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Safety
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Safety
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Safety
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Safety
impl<T, U> Into<U> for Safety
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Safety
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Safety
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>