pub trait OptCheck {
// Required methods
fn new() -> Self;
fn check(&mut self, graph: &Graph, tcx: &TyCtxt<'_>);
fn report(&self, graph: &Graph);
fn cnt(&self) -> usize;
}
Required Methods§
fn new() -> Self
fn check(&mut self, graph: &Graph, tcx: &TyCtxt<'_>)
fn report(&self, graph: &Graph)
fn cnt(&self) -> usize
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.