pub trait TypeRef<'a>:
Sized
+ Debug
+ Copy {
// Required method
unsafe fn from_slice(src: &'a [u8]) -> Self;
// Provided method
fn as_raw(&self) -> Option<&'a [u8]> { ... }
}Expand description
The reference type trait for the Type trait.
Required Methods§
Sourceunsafe fn from_slice(src: &'a [u8]) -> Self
unsafe fn from_slice(src: &'a [u8]) -> Self
Provided Methods§
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.