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§
fn name<'s>(&self, s: &'s Self::Space) -> &'s str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".