Skip to main content
none_if
tuwunel_
core
2.0.0
In tuwunel_
core::
utils::
result::
not_
found
tuwunel_core
::
utils
::
result
::
not_found
Function
none_if
Copy item path
Source
fn none_if<T>( result:
Result
<T>, absent:
fn
(&
Error
) ->
bool
, ) ->
Result
<
Option
<T>>