pub trait KeyType: Copy + Ord + Eq + Hash + Debug + 'static {
const STANDARD: &'static [Self];
// Required methods
fn unknown_unchecked(val: u8) -> Self;
fn from_u8(val: u8) -> Self;
fn into_u8(self) -> u8;
fn has_key_data(self) -> bool;
fn present_since(self) -> PsbtVer;
fn deprecated_since(self) -> Option<PsbtVer>;
fn is_required(self) -> bool;
fn is_proprietary(self) -> bool;
// Provided methods
fn unknown(val: u8) -> Self { ... }
fn to_u8(&self) -> u8 { ... }
fn is_allowed(self, version: PsbtVer) -> bool { ... }
}
Required Associated Constants§
Required Methods§
fn unknown_unchecked(val: u8) -> Self
fn from_u8(val: u8) -> Self
fn into_u8(self) -> u8
fn has_key_data(self) -> bool
fn present_since(self) -> PsbtVer
fn deprecated_since(self) -> Option<PsbtVer>
fn is_required(self) -> bool
fn is_proprietary(self) -> bool
Provided Methods§
fn unknown(val: u8) -> Self
fn to_u8(&self) -> u8
fn is_allowed(self, version: PsbtVer) -> bool
Object Safety§
This trait is not object safe.