pub trait Device: Debug {
// Required methods
fn as_any(&self) -> &dyn Any;
fn clone_boxed(&self) -> Box<dyn Device>;
fn eq(&self, rhs: &dyn Device) -> bool;
fn primitive_to_device(&self) -> Box<dyn Primitive>;
}
Performs copy-assignment from
source
.
Read more
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.