Skip to main content

ScenarioTarget

Trait ScenarioTarget 

Source
pub trait ScenarioTarget<C = (), O = ()> {
    // Required methods
    fn graph(&self) -> &Graph<C, O>;
    fn graph_mut(&mut self) -> &mut Graph<C, O>;
}
Expand description

Application target that exposes the Trellis graph under test.

Required Methods§

Source

fn graph(&self) -> &Graph<C, O>

Returns the underlying graph.

Source

fn graph_mut(&mut self) -> &mut Graph<C, O>

Returns the underlying graph mutably.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<C, O> ScenarioTarget<C, O> for Graph<C, O>

Source§

fn graph(&self) -> &Graph<C, O>

Source§

fn graph_mut(&mut self) -> &mut Graph<C, O>

Implementors§