Trait PriorityQueue

Source
pub trait PriorityQueue<T: PartialOrd> {
    // Required methods
    fn with_capacity(sz: usize) -> Self;
    fn insert(&mut self, el: T);
    fn contains(&self, el: &T) -> bool;
    fn remove(&mut self, el: &T);
    fn poll(&mut self) -> Option<T>;
}

Required Methods§

Source

fn with_capacity(sz: usize) -> Self

Source

fn insert(&mut self, el: T)

Source

fn contains(&self, el: &T) -> bool

Source

fn remove(&mut self, el: &T)

Source

fn poll(&mut self) -> Option<T>

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.

Implementors§