serde_encoded_bytes

Trait TryFromArray

Source
pub trait TryFromArray<E, const N: usize>: TryFrom<[u8; N], Error = E> { }
Expand description

A type of a trait alias, to work around https://github.com/rust-lang/rust/issues/113517. If not for that issue, we could just use TryFrom<[u8; N]> directly in the bounds.

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, const N: usize> TryFromArray<<T as TryFrom<[u8; N]>>::Error, N> for T
where T: TryFrom<[u8; N]>,