Trait ImportAscii

Source
pub trait ImportAscii {
    // Required method
    fn import_ascii_with_heads(
        &mut self,
        text: &str,
        heads: Option<&[impl AsRef<str>]>,
    ) -> Result<()>;

    // Provided method
    fn import_ascii(&mut self, text: &str) -> Result<()> { ... }
}
Expand description

Import ASCII graph to DAG.

Required Methods§

Source

fn import_ascii_with_heads( &mut self, text: &str, heads: Option<&[impl AsRef<str>]>, ) -> Result<()>

Import vertexes described in an ASCII graph. heads optionally specifies the order of heads to insert. Useful for testing. Panic if the input is invalid.

Provided Methods§

Source

fn import_ascii(&mut self, text: &str) -> Result<()>

Import vertexes described in an ASCII graph.

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§

Source§

impl<T> ImportAscii for T
where T: DagAddHeads,