Skip to main content

try_gated

Function try_gated 

Source
pub(crate) fn try_gated<T, E>(
    enabled: bool,
    derive: impl FnOnce() -> Result<T, E>,
) -> Result<T, E>
where T: Default,