[−][src]Struct doublecount::ActionOrder
A way to sort Actions by their date, and then by the priority of their ActionType.
Example
use doublecount::{Action, ActionOrder}; use std::rc::Rc; let mut actions: Vec<Rc<dyn Action>> = 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 Eq for ActionOrder
[src]
impl Ord for ActionOrder
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ActionOrder> for ActionOrder
[src]
fn eq(&self, other: &ActionOrder) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ActionOrder> for ActionOrder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ActionOrder
impl !Send for ActionOrder
impl !Sync for ActionOrder
impl Unpin for ActionOrder
impl !UnwindSafe for ActionOrder
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>,