emilbrat_test_library 0.1.1

Ignore this library, it is just for testing cargo and crates.io
Documentation
/// `Hobby` is the core data structure in this library. It records one value and thats is.
pub struct Hobby<'a> {
    hobby: &'a str,
}

impl Hobby<'_> {
    /// Call this to check wether the stored hobby is a good or bad one.
    pub fn good_hobby(&self) -> bool {
        match self.hobby {
            "Jogging"  => true,
            "Hiking"  => true,
            "Programming"  => true,
            _ => false,
        }
    }
}

/// Pass in your hobby and get the Hobby struct returned with the hobby field satisfied.
pub fn new_hobby<'a>(hobby: &'a str) -> Hobby<'a> {
    Hobby { hobby }
}