tina-core 0.0.2

Tina platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! 为空判断
use crate::tina::util::not_empty::INotEmpty;

/// 为空判断
pub trait IsEmpty {
    /// 是否为空
    fn is_empty(&self) -> bool;
}

impl<T> IsEmpty for T
where
    T: INotEmpty,
{
    fn is_empty(&self) -> bool {
        !self.not_empty()
    }
}