pub trait PemLabel {
const PEM_LABEL: &'static str;
// Provided method
fn validate_pem_label(actual: &str) -> Result<()> { ... }
}
Expand description
Marker trait for types with an associated PEM type label.
Required Associated Constants§
Provided Methods§
Sourcefn validate_pem_label(actual: &str) -> Result<()>
fn validate_pem_label(actual: &str) -> Result<()>
Validate that a given label matches the expected label.
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.