sway_core::engine_threading

Trait OrdWithEngines

Source
pub trait OrdWithEngines {
    // Required method
    fn cmp(&self, other: &Self, ctx: &OrdWithEnginesContext<'_>) -> Ordering;
}

Required Methods§

Source

fn cmp(&self, other: &Self, ctx: &OrdWithEnginesContext<'_>) -> Ordering

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: OrdWithEngines + ?Sized> OrdWithEngines for &T

Source§

fn cmp(&self, other: &Self, ctx: &OrdWithEnginesContext<'_>) -> Ordering

Source§

impl<T: OrdWithEngines> OrdWithEngines for Option<T>

Source§

fn cmp(&self, other: &Self, ctx: &OrdWithEnginesContext<'_>) -> Ordering

Source§

impl<T: OrdWithEngines> OrdWithEngines for [T]

Source§

fn cmp(&self, other: &Self, ctx: &OrdWithEnginesContext<'_>) -> Ordering

Source§

impl<T: OrdWithEngines> OrdWithEngines for Box<T>

Source§

fn cmp(&self, other: &Self, ctx: &OrdWithEnginesContext<'_>) -> Ordering

Implementors§