pub trait ProblemImplementation {
// Required methods
fn depth(&self) -> usize;
fn get(&self, depth: usize) -> Option<&Cause>;
fn get_mut(&mut self, depth: usize) -> Option<&mut Cause>;
fn top(&self) -> Option<&Cause>;
fn top_mut(&mut self) -> Option<&mut Cause>;
fn root(&self) -> Option<&Cause>;
fn root_mut(&mut self) -> Option<&mut Cause>;
fn add_top(&mut self, cause: Cause);
fn under(self, other: Self) -> Self;
fn above(self, other: Self) -> Self;
}Expand description
Problem implementation.
Required Methods§
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§
impl ProblemImplementation for Problem
Available on crate feature
thin-vec only.