Trait TryIntoOrCloneRef

Source
pub trait TryIntoOrCloneRef<T>: Sized {
    // Required methods
    fn try_into_or_clone_ref(self) -> Either<T, Self>;
    fn new_from_value(value: T) -> Self;
}

Required Methods§

Source

fn try_into_or_clone_ref(self) -> Either<T, Self>

Source

fn new_from_value(value: T) -> Self

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<T> TryIntoOrCloneRef<T> for T