Skip to main content

Bytes

Trait Bytes 

Source
pub unsafe trait Bytes:
    Sized
    + Copy
    + 'static { }
Expand description

Get bytes of a value.

You shouldn’t implement this trait manually, use derive macro.

§Safety

It should be safe to cast a slice of Self to bytes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Bytes for IVec2

Source§

impl Bytes for IVec3

Source§

impl Bytes for IVec4

Source§

impl Bytes for Mat2

Source§

impl Bytes for Mat3

Source§

impl Bytes for Mat4

Source§

impl Bytes for UVec2

Source§

impl Bytes for UVec3

Source§

impl Bytes for UVec4

Source§

impl Bytes for Vec2

Source§

impl Bytes for Vec3

Source§

impl Bytes for Vec4

Source§

impl Bytes for bool

Source§

impl Bytes for f32

Source§

impl Bytes for i32

Source§

impl Bytes for u8

Source§

impl Bytes for u32

Source§

impl<B, const N: usize> Bytes for [B; N]
where B: Bytes,

Implementors§