Skip to main content

Graph

Trait Graph 

Source
pub trait Graph {
    type Shape: Shape;

    // Required method
    fn shape(&self) -> Self::Shape;
}

Required Associated Types§

Required Methods§

Source

fn shape(&self) -> Self::Shape

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§