bitcoin-log 0.1.20

abstractions around the system logger
1
2
3
4
5
6
7
8
9
10
11
12
13
// ---------------- [ File: bitcoin-log/src/linked_list_ext.rs ]
crate::ix!();

/// A convenience extension: `is_empty()` on LinkedList
pub trait LinkedListExt<T> {
    fn is_empty(&self) -> bool;
}

impl<T> LinkedListExt<T> for LinkedList<T> {
    fn is_empty(&self) -> bool {
        self.len() == 0
    }
}