Trait PodLength

Source
pub trait PodLength:
    Pod
    + Into<usize>
    + TryFrom<usize, Error = PodSliceError> { }
Expand description

Marker trait for converting to/from Pod uint’s and usize

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> PodLength for T
where T: Pod + Into<usize> + TryFrom<usize, Error = PodSliceError>,

Blanket implementation to automatically implement PodLength for any type that satisfies the required bounds.