Trait FromGutsUnchecked

Source
pub trait FromGutsUnchecked: HasGuts {
    // Required method
    unsafe fn from_guts_unchecked(guts: Self::Guts) -> Self;
}
Expand description

Unsafely constructing values from their guts without checking invariants.

Required Methods§

Source

unsafe fn from_guts_unchecked(guts: Self::Guts) -> Self

Constructs a value from its guts, without checking invariants.

§Safety

Depending on the invariants of Self this method may introduce unsafety by constructing from unchecked guts.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> FromGutsUnchecked for T
where T: FromGuts,