use crate::prelude::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(deny_unknown_fields))]
pub enum SchemeType {
File ,
SpecialNotFile,
NonSpecial ,
}
impl SchemeType {
pub const fn is_special (self) -> bool {matches!(self, Self::File | Self::SpecialNotFile)}
pub const fn is_file (self) -> bool {matches!(self, Self::File )}
pub const fn is_special_not_file(self) -> bool {matches!(self, Self::SpecialNotFile )}
pub const fn is_non_special (self) -> bool {matches!(self, Self::NonSpecial )}
}