Skip to main content

HasBackend

Trait HasBackend 

Source
pub trait HasBackend {
    type Backend: Backend;

    // Required method
    fn backend(&self) -> &Self::Backend;
}

Required Associated Types§

Required Methods§

Source

fn backend(&self) -> &Self::Backend

Implementations on Foreign Types§

Source§

impl<'a, T> HasBackend for Cow<'a, T>
where T: HasBackend + Clone,

Source§

type Backend = <T as HasBackend>::Backend

Source§

fn backend(&self) -> &Self::Backend

Source§

impl<T> HasBackend for &T
where T: HasBackend,

Source§

type Backend = <T as HasBackend>::Backend

Source§

fn backend(&self) -> &Self::Backend

Source§

impl<T> HasBackend for &mut T
where T: HasBackend,

Source§

type Backend = <T as HasBackend>::Backend

Source§

fn backend(&self) -> &Self::Backend

Source§

impl<T> HasBackend for Box<T>
where T: HasBackend,

Source§

type Backend = <T as HasBackend>::Backend

Source§

fn backend(&self) -> &Self::Backend

Source§

impl<T> HasBackend for Rc<T>
where T: HasBackend,

Source§

type Backend = <T as HasBackend>::Backend

Source§

fn backend(&self) -> &Self::Backend

Source§

impl<T> HasBackend for Arc<T>
where T: HasBackend,

Source§

type Backend = <T as HasBackend>::Backend

Source§

fn backend(&self) -> &Self::Backend

Implementors§

Source§

impl<T, A: Backend> HasBackend for Buffer<T, A>