Trait rai_core::Backend

source ·
pub trait Backend: Debug {
    // Required methods
    fn clone_boxed(&self) -> Box<dyn Backend>;
    fn data_type_id(&self) -> TypeId;
    fn as_any(&self) -> &dyn Any;
    fn equal(&self, rhs: &dyn Backend) -> bool;
}

Required Methods§

source

fn clone_boxed(&self) -> Box<dyn Backend>

source

fn data_type_id(&self) -> TypeId

source

fn as_any(&self) -> &dyn Any

source

fn equal(&self, rhs: &dyn Backend) -> bool

Trait Implementations§

source§

impl Clone for Box<dyn Backend>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> From<&'a Box<dyn Backend>> for Box<dyn Backend>

source§

fn from(t: &'a Box<dyn Backend>) -> Self

Converts to this type from the input type.
source§

impl<'a, T> From<&'a T> for Box<dyn Backend>
where T: Clone + Backend + 'static,

source§

fn from(t: &'a T) -> Self

Converts to this type from the input type.
source§

impl<'a> From<&'a dyn Backend> for Box<dyn Backend>

source§

fn from(t: &'a dyn Backend) -> Self

Converts to this type from the input type.
source§

impl<'a> PartialEq for &'a dyn Backend

source§

fn eq(&self, rhs: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§