pub enum PsbtVer {
V0 = 0,
V2 = 2,
}
Variants§
Implementations§
Source§impl PsbtVer
impl PsbtVer
pub const fn try_from_standard_u32( v: u32, ) -> Result<PsbtVer, PsbtUnsupportedVer>
pub const fn to_standard_u32(&self) -> u32
pub const fn max() -> PsbtVer
Trait Implementations§
Source§impl Ord for PsbtVer
impl Ord for PsbtVer
Source§impl PartialOrd for PsbtVer
impl PartialOrd for PsbtVer
Source§impl Serialize for PsbtVer
impl Serialize for PsbtVer
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PsbtVer
impl Eq for PsbtVer
impl StructuralPartialEq for PsbtVer
Auto Trait Implementations§
impl Freeze for PsbtVer
impl RefUnwindSafe for PsbtVer
impl Send for PsbtVer
impl Sync for PsbtVer
impl Unpin for PsbtVer
impl UnwindSafe for PsbtVer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.