pub fn new(
        controller: controller::Project,
        init_result: controller::project::InitializationResult,
        view: view::project::View,
    ) -> Self {
        let graph_controller = init_result.main_graph;
        let graph = presenter::Graph::new(graph_controller, view.graph().clone_ref());
        let model = Model { controller, view, graph };
        Self { model: Rc::new(model) }
    }
/// Construct new project presenter, basing of the project initialization result.
///
/// The returned presenter will be already working: it will display the initial main graph, and
/// react to all notifications.
Construct new project presenter, basing of the project initialization result.
The returned presenter will be already working: it will display the initial main graph, and
react to all notifications.
Construct new project presenter basing of the project initialization result . The returned presenter will be already working : it will display the initial main graph and react to all notifications .
pub fn new(
        controller: controller::Project,
        init_result: controller::project::InitializationResult,
        view: view::project::View,
    ) -> Self {
        let graph_controller = init_result.main_graph;
        let graph = presenter::Graph::new(graph_controller, view.graph().clone_ref());
        let model = Model { controller, view, graph };
        Self { model: Rc::new(model) }
    }
pub fn new ( controller : controller :: Project , init_result : controller :: project :: InitializationResult , view : view :: project :: View , ) -> Self { let graph_controller = init_result . main_graph ; let graph = presenter :: Graph :: new ( graph_controller , view . graph ( ) . clone_ref ( ) ) ; let model = Model { controller , view , graph } ; Self { model : Rc :: new ( model ) } }
Construct new project presenter, basing of the project initialization result.
Construct new project presenter basing of the project initialization result .
controller
controller::Project
init_result
controller::project::InitializationResult
view
view::project::View
controller
controller::Project
init_result
controller::project::InitializationResult
view
view::project::View