Trait Of

Source
pub trait Of<F, Output = Self>: To {
    // Required method
    fn of(value: F) -> Output;
}

Required Methods§

Source

fn of(value: F) -> Output

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<F, I> Of<Vec<F>> for Vec<I>
where I: Of<F>,

Source§

fn of(vec: Vec<F>) -> Self

Source§

impl<F: Clone, I> Of<&Vec<F>> for Vec<I>
where I: Of<F>,

Source§

fn of(vec: &Vec<F>) -> Self

Implementors§