pub fn should_have_value(mut self, e: Error) -> Detail<T> {
        if self.value.is_none() {
            self.reason = Reason::Error { error: e };
        }
        self
    }
/// Sets the [Detail::reason] to the provided error if the current [Detail] instance does not
/// have a value set.
Sets the [Detail::reason] to the provided error if the current [Detail] instance does not
have a value set.
Sets the [ Detail :: reason ] to the provided error if the current [ Detail ] instance does not have a value set .
pub fn should_have_value(mut self, e: Error) -> Detail<T> {
        if self.value.is_none() {
            self.reason = Reason::Error { error: e };
        }
        self
    }
pub fn should_have_value ( mut self , e : Error ) -> Detail < T > { if self . value . is_none ( ) { self . reason = Reason :: Error { error : e } ; } self }
Sets the [Detail::reason] to the provided error if the current [Detail] instance does not
have a value set.
Sets the [ Detail :: reason ] to the provided error if the current [ Detail ] instance does not have a value set .
mut self
e
Error
mut self
e
Error