pub trait StrictArmor: StrictSerialize + StrictDeserialize {
type Id: Copy + Eq + Debug + Display + FromStr<Err = Baid64ParseError>;
const PLATE_TITLE: &'static str;
// Required method
fn armor_id(&self) -> Self::Id;
// Provided methods
fn checksum_armor(&self) -> bool { ... }
fn armor_headers(&self) -> Vec<ArmorHeader> { ... }
fn parse_armor_headers(
&mut self,
_headers: Vec<ArmorHeader>,
) -> Result<(), StrictArmorError> { ... }
}Required Associated Constants§
const PLATE_TITLE: &'static str
Required Associated Types§
Required Methods§
Provided Methods§
fn checksum_armor(&self) -> bool
fn armor_headers(&self) -> Vec<ArmorHeader>
fn parse_armor_headers( &mut self, _headers: Vec<ArmorHeader>, ) -> Result<(), StrictArmorError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.