Skip to main content

try_with_context

Function try_with_context 

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

Try to access the global context for reading.

Returns None if polyscope has not been initialized.