rlist_vfs 0.1.4

Virtual File System for rList
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait Combinable
where
    Self: Sized,
{
    fn combine(from: Vec<Self>) -> Self;
}

#[macro_export]
/// Combine items to one item, items must be the same type and implement `Combinable`
macro_rules! combine {
    ($($item:expr),*) => {{
        let items = vec![$($item),*];
        $crate::combinable::Combinable::combine(items)
    }};
}