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.

Object Safety§

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]>,