Skip to main content

From

Trait From 

Source
pub trait From {
    // Required method
    unsafe fn from_bytes(bytes: &[u8]) -> Self;
}
Expand description

A type which can be constructed from bytes unsafely

Required Methods§

Source

unsafe fn from_bytes(bytes: &[u8]) -> Self

Construct a type from an array of bytes

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> From for T
where T: Sized + Copy,