pub struct Subaddress<'a> {
pub tag: SubaddressTag,
pub addr: OctetString<'a, 1, 22>,
}Fields§
§tag: SubaddressTag§addr: OctetString<'a, 1, 22>Implementations§
Source§impl<'a> Subaddress<'a>
impl<'a> Subaddress<'a>
pub fn into_parts(self) -> SubaddressParts<'a>
Source§impl<'a> Subaddress<'a>
impl<'a> Subaddress<'a>
pub fn new(tag: SubaddressTag, addr: OctetString<'a, 1, 22>) -> Self
Trait Implementations§
Source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for Subaddress<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for Subaddress<'a>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<'a> Clone for Subaddress<'a>
impl<'a> Clone for Subaddress<'a>
Source§fn clone(&self) -> Subaddress<'a>
fn clone(&self) -> Subaddress<'a>
Returns a duplicate 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<'a> Debug for Subaddress<'a>
impl<'a> Debug for Subaddress<'a>
Source§impl<'a> DecodeWithLength<'a> for Subaddress<'a>
impl<'a> DecodeWithLength<'a> for Subaddress<'a>
Source§impl<'a> Default for Subaddress<'a>
impl<'a> Default for Subaddress<'a>
Source§fn default() -> Subaddress<'a>
fn default() -> Subaddress<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Encode for Subaddress<'a>
impl<'a> Encode for Subaddress<'a>
Source§impl<'a> Hash for Subaddress<'a>
impl<'a> Hash for Subaddress<'a>
Source§impl<'a> Ord for Subaddress<'a>
impl<'a> Ord for Subaddress<'a>
Source§fn cmp(&self, other: &Subaddress<'a>) -> Ordering
fn cmp(&self, other: &Subaddress<'a>) -> 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<'a> PartialEq for Subaddress<'a>
impl<'a> PartialEq for Subaddress<'a>
Source§impl<'a> PartialOrd for Subaddress<'a>
impl<'a> PartialOrd for Subaddress<'a>
Source§impl<'a> Serialize for Subaddress<'a>
impl<'a> Serialize for Subaddress<'a>
impl<'a> Eq for Subaddress<'a>
impl<'a> StructuralPartialEq for Subaddress<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subaddress<'a>
impl<'a> RefUnwindSafe for Subaddress<'a>
impl<'a> Send for Subaddress<'a>
impl<'a> Sync for Subaddress<'a>
impl<'a> Unpin for Subaddress<'a>
impl<'a> UnwindSafe for Subaddress<'a>
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