Skip to main content

try_with_context_mut

Function try_with_context_mut 

Source
pub fn try_with_context_mut<F, R>(f: F) -> Option<R>
where F: FnOnce(&mut Context) -> R,
Expand description

Try to access the global context for writing.

Returns None if polyscope has not been initialized.