serde_encoded_bytes

Trait TryFromSliceRef

Source
pub trait TryFromSliceRef<'a, E>: TryFrom<&'a [u8], 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<&'a [u8]> 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<'a, T> TryFromSliceRef<'a, <T as TryFrom<&'a [u8]>>::Error> for T
where T: TryFrom<&'a [u8]>,