[−][src]Struct doublecount::ActionOrder
A way to sort Actions by their date, and then by the priority of their ActionType.
Example
use doublecount::{ActionTypeValue, ActionOrder}; use std::rc::Rc; let mut actions: Vec<Rc<ActionTypeValue>> = Vec::new(); // let's pretend we created and added // some actions to the actions vector // sort the actions using this order actions.sort_by_key(|a| ActionOrder(a.clone()));
Trait Implementations
impl<A> Eq for ActionOrder<A> where
A: ActionTypeValueEnum, [src]
A: ActionTypeValueEnum,
impl<A> Ord for ActionOrder<A> where
A: ActionTypeValueEnum, [src]
A: ActionTypeValueEnum,
fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<A> PartialEq<ActionOrder<A>> for ActionOrder<A> where
A: ActionTypeValueEnum, [src]
A: ActionTypeValueEnum,
fn eq(&self, other: &ActionOrder<A>) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<A> PartialOrd<ActionOrder<A>> for ActionOrder<A> where
A: ActionTypeValueEnum, [src]
A: ActionTypeValueEnum,
Auto Trait Implementations
impl<A> !RefUnwindSafe for ActionOrder<A>
impl<A> !Send for ActionOrder<A>
impl<A> !Sync for ActionOrder<A>
impl<A> Unpin for ActionOrder<A>
impl<A> UnwindSafe for ActionOrder<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,