pub struct FutureLeafVer(/* private fields */);Expand description
Inner type representing future (non-tapscript) leaf versions. See
LeafVer::Future.
NB: NO PUBLIC CONSTRUCTOR!
The only way to construct this is by converting u8 to LeafVer and then
extracting it.
Implementations§
Source§impl FutureLeafVer
 
impl FutureLeafVer
Sourcepub fn to_consensus(self) -> u8
 
pub fn to_consensus(self) -> u8
Returns the consensus representation of this FutureLeafVer.
Trait Implementations§
Source§impl Clone for FutureLeafVer
 
impl Clone for FutureLeafVer
Source§fn clone(&self) -> FutureLeafVer
 
fn clone(&self) -> FutureLeafVer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for FutureLeafVer
 
impl Debug for FutureLeafVer
Source§impl Hash for FutureLeafVer
 
impl Hash for FutureLeafVer
Source§impl LowerHex for FutureLeafVer
 
impl LowerHex for FutureLeafVer
Source§impl Ord for FutureLeafVer
 
impl Ord for FutureLeafVer
Source§fn cmp(&self, other: &FutureLeafVer) -> Ordering
 
fn cmp(&self, other: &FutureLeafVer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FutureLeafVer
 
impl PartialEq for FutureLeafVer
Source§impl PartialOrd for FutureLeafVer
 
impl PartialOrd for FutureLeafVer
Source§impl StrictDecode for FutureLeafVer
 
impl StrictDecode for FutureLeafVer
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<FutureLeafVer, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for FutureLeafVer
 
impl StrictDumb for FutureLeafVer
fn strict_dumb() -> FutureLeafVer
Source§impl StrictEncode for FutureLeafVer
 
impl StrictEncode for FutureLeafVer
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
    W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictTuple for FutureLeafVer
 
impl StrictTuple for FutureLeafVer
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for FutureLeafVer
 
impl StrictType for FutureLeafVer
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
Source§impl UpperHex for FutureLeafVer
 
impl UpperHex for FutureLeafVer
impl Copy for FutureLeafVer
impl Eq for FutureLeafVer
impl StrictProduct for FutureLeafVer
impl StructuralPartialEq for FutureLeafVer
Auto Trait Implementations§
impl Freeze for FutureLeafVer
impl RefUnwindSafe for FutureLeafVer
impl Send for FutureLeafVer
impl Sync for FutureLeafVer
impl Unpin for FutureLeafVer
impl UnwindSafe for FutureLeafVer
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.