Function dia_assert::try_once_with [] [src]

pub fn try_once_with<F, S>(f: F) where
    F: Fn() -> S,
    S: AsRef<str>, 

Tries once.

This function calls try_n_with() with 1 passed as n.