Skip to main content

DynJet

Trait DynJet 

Source
pub trait DynJet {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn dyn_clone(&self) -> Box<dyn Jet>;
    fn dyn_eq(&self, other: &dyn Jet) -> bool;
    fn dyn_cmp(&self, other: &dyn Jet) -> Ordering;
    fn dyn_hash(&self, state: &mut dyn Hasher);
}
Expand description

Lets Box<dyn Jet> work with Clone, Eq, Ord, and Hash.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn dyn_clone(&self) -> Box<dyn Jet>

Source

fn dyn_eq(&self, other: &dyn Jet) -> bool

Source

fn dyn_cmp(&self, other: &dyn Jet) -> Ordering

Source

fn dyn_hash(&self, state: &mut dyn Hasher)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Jet + Clone + Ord + Hash> DynJet for T