Trait TryFromBytes

Source
pub trait TryFromBytes: Sized {
    // Required method
    fn try_from_le_bytes(bytes: &[u8]) -> VortexResult<Self>;
}
Expand description

A trait for types that can be converted from a little-endian byte slice

Required Methods§

Source

fn try_from_le_bytes(bytes: &[u8]) -> VortexResult<Self>

Attempts to convert a slice of bytes in little-endian order to this type

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.

Implementations on Foreign Types§

Source§

impl TryFromBytes for f32

Source§

impl TryFromBytes for f64

Source§

impl TryFromBytes for i8

Source§

impl TryFromBytes for i16

Source§

impl TryFromBytes for i32

Source§

impl TryFromBytes for i64

Source§

impl TryFromBytes for u8

Source§

impl TryFromBytes for u16

Source§

impl TryFromBytes for u32

Source§

impl TryFromBytes for u64

Source§

impl TryFromBytes for f16

Implementors§