Skip to main content

deref_mut_or_return

Macro deref_mut_or_return 

Source
macro_rules! deref_mut_or_return {
    ($ptr:expr, $type:ty, $err_val:expr) => { ... };
}
Expand description

Validate pointer and dereference mutably, returning reference Returns early with custom value on error