Trait Exists

Source
pub trait Exists<T: Sized> {
    // Required method
    fn erase(self) -> Erased<T>;
}
Expand description

The Exists trait is intended to be used with impl, to denote an argument where the existence of a value is sufficient as an argument

Required Methods§

Source

fn erase(self) -> Erased<T>

Implementors§

Source§

impl<'a, 'b, T> Exists<&'a T> for &'a Erased<&'b T>

Source§

impl<'a, 'b: 'a, T> Exists<&'a T> for &'a Erased<&'b mut T>

Source§

impl<'a, 'b: 'a, T> Exists<&'a T> for Erased<&'b T>

Source§

impl<'a, 'b: 'a, T> Exists<&'a T> for Erased<&'b mut T>

Source§

impl<'a, 'b: 'a, T> Exists<&'a mut T> for &'a mut Erased<&'b mut T>

Source§

impl<'a, 'b: 'a, T> Exists<&'a mut T> for Erased<&'b mut T>

Source§

impl<T> Exists<T> for T