Method

Trait Method 

Source
pub trait Method<T: ?Sized> {
    type Target<'a>: Borrow<T>
       where Self: 'a;

    // Required method
    fn method(&self) -> Self::Target<'_>;
}

Required Associated Types§

Source

type Target<'a>: Borrow<T> where Self: 'a

Required Methods§

Source

fn method(&self) -> Self::Target<'_>

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§