Struct descriptors::DescrVariants
source · [−]#[repr(C)]pub struct DescrVariants {
pub bare: bool,
pub hashed: bool,
pub nested: bool,
pub segwit: bool,
pub taproot: bool,
}Fields
bare: boolhashed: boolnested: boolsegwit: booltaproot: boolImplementations
sourceimpl DescrVariants
impl DescrVariants
Trait Implementations
sourceimpl Clone for DescrVariants
impl Clone for DescrVariants
sourcefn clone(&self) -> DescrVariants
fn clone(&self) -> DescrVariants
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DescrVariants
impl Debug for DescrVariants
sourceimpl Default for DescrVariants
impl Default for DescrVariants
sourcefn default() -> DescrVariants
fn default() -> DescrVariants
Returns the “default value” for a type. Read more
sourceimpl Display for DescrVariants
impl Display for DescrVariants
sourceimpl FromStr for DescrVariants
impl FromStr for DescrVariants
sourceimpl Hash for DescrVariants
impl Hash for DescrVariants
sourceimpl Ord for DescrVariants
impl Ord for DescrVariants
sourceimpl PartialEq<DescrVariants> for DescrVariants
impl PartialEq<DescrVariants> for DescrVariants
sourcefn eq(&self, other: &DescrVariants) -> bool
fn eq(&self, other: &DescrVariants) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DescrVariants) -> bool
fn ne(&self, other: &DescrVariants) -> bool
This method tests for !=.
sourceimpl PartialOrd<DescrVariants> for DescrVariants
impl PartialOrd<DescrVariants> for DescrVariants
sourcefn partial_cmp(&self, other: &DescrVariants) -> Option<Ordering>
fn partial_cmp(&self, other: &DescrVariants) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl StrictDecode for DescrVariants
impl StrictDecode for DescrVariants
sourcefn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given std::io::Read instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode. If there are some data remains in the
buffer once deserialization is completed, fails with
Error::DataNotEntirelyConsumed. Use io::Cursor over the buffer and
StrictDecode::strict_decode to avoid such failures. Read more
sourcefn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
Reads data from file at path and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed if file contains remaining
data after the object reconstruction. Read more
sourceimpl StrictEncode for DescrVariants
impl StrictEncode for DescrVariants
sourcefn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given std::io::Write instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
impl Copy for DescrVariants
impl Eq for DescrVariants
impl StructuralEq for DescrVariants
impl StructuralPartialEq for DescrVariants
Auto Trait Implementations
impl RefUnwindSafe for DescrVariants
impl Send for DescrVariants
impl Sync for DescrVariants
impl Unpin for DescrVariants
impl UnwindSafe for DescrVariants
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more