#[macro_use]
mod macros;
mod boolean;
mod integer;
mod string;
use std::error::Error;
use std::fmt::{self, Display, Formatter};
pub use boolean::*;
pub use integer::*;
pub use string::*;
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub struct ParseCapabilityError;
impl Display for ParseCapabilityError {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
"provided string did not match any capabilities".fmt(f)
}
}
impl Error for ParseCapabilityError {}
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub struct IndexOutOfRangeError;
impl Display for IndexOutOfRangeError {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
"provided index is out of range".fmt(f)
}
}
impl Error for IndexOutOfRangeError {}