Trait differential_dataflow::trace::cursor::MyTrait
source · pub trait MyTrait<'a>: Ord {
type Owned;
// Required methods
fn into_owned(self) -> Self::Owned;
fn clone_onto(&self, other: &mut Self::Owned);
fn compare(&self, other: &Self::Owned) -> Ordering;
fn borrow_as(other: &'a Self::Owned) -> Self;
// Provided methods
fn less_equals(&self, other: &Self::Owned) -> bool { ... }
fn equals(&self, other: &Self::Owned) -> bool { ... }
fn less_than(&self, other: &Self::Owned) -> bool { ... }
}
Expand description
A type that may be converted into and compared with another type.
The type must also be comparable with itself, and follow the same
order as if converting instances to T
and comparing the results.
Required Associated Types§
Required Methods§
sourcefn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Conversion from an instance of this type to the owned type.
sourcefn clone_onto(&self, other: &mut Self::Owned)
fn clone_onto(&self, other: &mut Self::Owned)
Provided Methods§
sourcefn less_equals(&self, other: &Self::Owned) -> bool
fn less_equals(&self, other: &Self::Owned) -> bool
self <= other
Object Safety§
This trait is not object safe.