Trait cargo_show_asm::Dumpable
source · pub trait Dumpable {
type Line<'a>;
// Required methods
fn split_lines(contents: &str) -> Result<Vec<Self::Line<'_>>>;
fn find_items(lines: &[Self::Line<'_>]) -> BTreeMap<Item, Range<usize>>;
fn dump_range(&self, fmt: &Format, lines: &[Self::Line<'_>]) -> Result<()>;
// Provided method
fn extra_context(
&self,
fmt: &Format,
lines: &[Self::Line<'_>],
range: Range<usize>,
items: &BTreeMap<Item, Range<usize>>,
) -> Vec<Range<usize>> { ... }
}
Required Associated Types§
Required Methods§
sourcefn split_lines(contents: &str) -> Result<Vec<Self::Line<'_>>>
fn split_lines(contents: &str) -> Result<Vec<Self::Line<'_>>>
Split source code into multiple lines, code can do some parsing here
Provided Methods§
Object Safety§
This trait is not object safe.