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§
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>
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.