[][src]Trait libimaghabit::util::IsValidHabitObj

pub trait IsValidHabitObj: HabitInstance + HabitTemplate {
    fn is_valid_havit_obj(&self) -> Result<bool> { ... }
}

Helper trait to check whether a object which can be a habit instance and a habit template is actually a valid object, whereas "valid" is defined that it is either an instance or a template (think XOR).

Provided methods

Loading content...

Implementors

impl<H> IsValidHabitObj for H where
    H: HabitInstance + HabitTemplate
[src]

Loading content...