fn new(model: &Model) -> FallibleResult<Self> {
        let displayed = model.state.clone_ref();
        let nodes = model.controller.graph().nodes()?;
        let connections_and_trees = model.controller.connections()?;
        let connections = connections_and_trees.connections.into_iter().collect();
        let trees = connections_and_trees.trees;
        Ok(Self { state: displayed, nodes, trees, connections })
    }
/// Create ViewUpdate information from Graph Presenter's model.
Create ViewUpdate information from Graph Presenter's model.
Create ViewUpdate information from Graph Presenter ' s model .
fn new(model: &Model) -> FallibleResult<Self> {
        let displayed = model.state.clone_ref();
        let nodes = model.controller.graph().nodes()?;
        let connections_and_trees = model.controller.connections()?;
        let connections = connections_and_trees.connections.into_iter().collect();
        let trees = connections_and_trees.trees;
        Ok(Self { state: displayed, nodes, trees, connections })
    }
fn new ( model : & Model ) -> FallibleResult < Self > { let displayed = model . state . clone_ref ( ) ; let nodes = model . controller . graph ( ) . nodes ( ) ? ; let connections_and_trees = model . controller . connections ( ) ? ; let connections = connections_and_trees . connections . into_iter ( ) . collect ( ) ; let trees = connections_and_trees . trees ; Ok ( Self { state : displayed , nodes , trees , connections } ) }
Create ViewUpdate information from Graph Presenter's model.
Create ViewUpdate information from Graph Presenter ' s model .
model
&Model
model
&Model