mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Add more documentation comments
This commit is contained in:
@@ -592,6 +592,8 @@ pub(crate) fn improve_single_line_input(input: &str) -> String {
|
||||
}
|
||||
|
||||
pub(crate) trait IsNoneOrEmpty<T> {
|
||||
/// Returns true if an Option does not contain a string
|
||||
/// or contains an empty string.
|
||||
fn is_none_or_empty(&self) -> bool;
|
||||
}
|
||||
impl<T> IsNoneOrEmpty<T> for Option<T>
|
||||
|
||||
Reference in New Issue
Block a user