pub trait Matter: Any {
Show 13 methods
// Required methods
fn code(&self) -> &str;
fn raw(&self) -> &[u8] ⓘ;
fn qb64(&self) -> String;
fn qb64b(&self) -> Vec<u8> ⓘ;
fn qb2(&self) -> Vec<u8> ⓘ;
fn soft(&self) -> &str;
fn full_size(&self) -> usize;
fn size(&self) -> usize;
fn is_transferable(&self) -> bool;
fn is_digestive(&self) -> bool;
fn is_prefixive(&self) -> bool;
fn is_special(&self) -> bool;
fn as_any(&self) -> &dyn Any;
}Expand description
Matter is a trait for fully qualified cryptographic material. Implementations provide various specialized crypto material types.
Required Methods§
Sourcefn is_transferable(&self) -> bool
fn is_transferable(&self) -> bool
Returns whether the derivation code is transferable
Sourcefn is_digestive(&self) -> bool
fn is_digestive(&self) -> bool
Returns whether the code represents a digest
Sourcefn is_prefixive(&self) -> bool
fn is_prefixive(&self) -> bool
Returns whether the code represents a prefix
Sourcefn is_special(&self) -> bool
fn is_special(&self) -> bool
Returns whether the code represents a prefix
fn as_any(&self) -> &dyn Any
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".