Trait From

Source
pub trait From<T>
where T: View, Self: View + Sized, Self::V: SpecFrom<T::V>,
{ // Required method fn ex_from(t: T) -> Self; }
Expand description

Vest equivalent of std::convert::From.

Required Methods§

Source

fn ex_from(t: T) -> Self

Vest equivalent of std::convert::From::from.

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.

Implementations on Foreign Types§

Source§

impl<'a, 'b, const N: usize> From<&'a [u8; N]> for &'b [u8]
where 'a: 'b,

Source§

fn ex_from(v: &'a [u8; N]) -> &'b [u8]

Implementors§

Source§

impl<T> From<T> for T
where T: View, T::V: SpecFrom<T::V>,