Skip to main content

Graph

Trait Graph 

Source
pub trait Graph {
    type Space;
    type Error: From<SpacesError>;

    // Required methods
    fn name<'s>(&self, s: &'s Self::Space) -> &'s str;
    fn main_source(&self, s: &Self::Space) -> Result<String, Self::Error>;
    fn find(&self, name: &str) -> Option<Self::Space>;
}
Expand description

The spaces as the application stores them, for check_cycles.

Required Associated Types§

Required Methods§

Source

fn name<'s>(&self, s: &'s Self::Space) -> &'s str

Source

fn main_source(&self, s: &Self::Space) -> Result<String, Self::Error>

The source of the space’s main code.

Source

fn find(&self, name: &str) -> Option<Self::Space>

The space called name, if there is one.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§