umya-spreadsheet 2.3.3

umya-spreadsheet is a library written in pure Rust to read and write xlsx file.
Documentation
#[derive(Clone, Default, Debug)]
pub struct TrueFalseBlankValue {
    value: Option<bool>,
}
impl TrueFalseBlankValue {
    #[inline]
    pub(crate) fn get_value(&self) -> Option<&bool> {
        self.value.as_ref()
    }

    #[inline]
    pub(crate) fn _get_value_str(&self) -> &str {
        self.get_value().map_or("", |v| if *v { "t" } else { "f" })
    }

    #[inline]
    pub(crate) fn get_value_string2(&self) -> &str {
        self.get_value()
            .map_or("", |v| if *v { "True" } else { "False" })
    }

    #[inline]
    pub(crate) fn set_value(&mut self, value: bool) -> &mut Self {
        self.value = Some(value);
        self
    }

    #[inline]
    pub(crate) fn set_value_string<S: Into<String>>(&mut self, value: S) -> &mut Self {
        let value = value.into();
        self.set_value(!(value.eq_ignore_ascii_case("f") || value.eq_ignore_ascii_case("false")))
    }

    #[inline]
    pub(crate) fn has_value(&self) -> bool {
        self.value.is_some()
    }

    #[inline]
    pub(crate) fn _get_hash_string(&self) -> &str {
        if self.has_value() {
            return self._get_value_str();
        }
        "empty!!"
    }
}