deltachat::tools

Trait IsNoneOrEmpty

source
pub(crate) trait IsNoneOrEmpty<T> {
    // Required method
    fn is_none_or_empty(&self) -> bool;
}

Required Methods§

source

fn is_none_or_empty(&self) -> bool

Returns true if an Option does not contain a string or contains an empty string.

Implementations on Foreign Types§

source§

impl<T> IsNoneOrEmpty<T> for Option<T>
where T: AsRef<str>,

Implementors§