pub fn refresh_code_editor(&self) -> FallibleResult {
        let current_code = self.code_view.get().to_string();
        let new_code = self.graph.graph().module.ast().repr();
        if new_code != current_code {
            self.code_view.set(new_code.as_str().into());
            self.view.code_editor().text_area().set_content(new_code);
        }
        Ok(())
    }
/// Refresh displayed code to be up to date with module state.
Refresh displayed code to be up to date with module state.
Refresh displayed code to be up to date with module state .
pub fn refresh_code_editor(&self) -> FallibleResult {
        let current_code = self.code_view.get().to_string();
        let new_code = self.graph.graph().module.ast().repr();
        if new_code != current_code {
            self.code_view.set(new_code.as_str().into());
            self.view.code_editor().text_area().set_content(new_code);
        }
        Ok(())
    }
pub fn refresh_code_editor ( & self ) -> FallibleResult { let current_code = self . code_view . get ( ) . to_string ( ) ; let new_code = self . graph . graph ( ) . module . ast ( ) . repr ( ) ; if new_code != current_code { self . code_view . set ( new_code . as_str ( ) . into ( ) ) ; self . view . code_editor ( ) . text_area ( ) . set_content ( new_code ) ; } Ok ( ( ) ) }
Refresh displayed code to be up to date with module state.
Refresh displayed code to be up to date with module state .
&self
&self