libutils-report 0.1.1

A custom error wrapper for detailed logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//^
//^ THEN
//^

//> THEN -> STRUCT
#[must_use]
pub struct Then<Type> {
    pub value: Option<Type>
}

//> THEN -> IMPLEMENTATION
impl<Type> Then<Type> {
    pub fn ignore(self) -> () {}
    pub fn none<Wants>(self) -> Option<Wants> {return None}
    pub fn get(self) -> Option<Type> {return self.value}
}