Skip to main content

Interchangeable

Trait Interchangeable 

Source
pub trait Interchangeable<T> {
    // Required methods
    fn interchangeable_into(self) -> T;
    fn interchangeable_from(other: T) -> Self;
}

Required Methods§

Source

fn interchangeable_into(self) -> T

Source

fn interchangeable_from(other: T) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> Interchangeable<CompactListCodec<Vec<T>>> for Vec<T>

Implementors§

Source§

impl<A, B> Interchangeable<A> for B
where A: From<B>, B: From<A>,