#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct FindSettings {
pub(crate) allow_addend: bool,
}
impl FindSettings {
#[must_use]
pub const fn new(allow_addend: bool) -> Self {
Self { allow_addend }
}
#[must_use]
pub const fn allow_addend(&self) -> bool {
self.allow_addend
}
}
impl Default for FindSettings {
fn default() -> Self {
Self::new(true)
}
}