Add more documentation comments

This commit is contained in:
link2xt
2023-02-23 12:55:43 +00:00
parent ee81d61988
commit ade3d0d4eb
7 changed files with 23 additions and 0 deletions

View File

@@ -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>