diff --git a/rustdoc/latest/src/zcash_protocol/consensus.rs.html b/rustdoc/latest/src/zcash_protocol/consensus.rs.html index 9f7a2b9f2..a42c9c04b 100644 --- a/rustdoc/latest/src/zcash_protocol/consensus.rs.html +++ b/rustdoc/latest/src/zcash_protocol/consensus.rs.html @@ -782,13 +782,23 @@ 781 782 783 -784
//! Consensus logic and parameters.
-
+784
+785
+786
+787
+788
+789
+790
+791
+792
//! Consensus logic and parameters.
+
+use core::cmp::{Ord, Ordering};
+use core::convert::TryFrom;
+use core::fmt;
+use core::ops::{Add, Bound, RangeBounds, Sub};
+
+#[cfg(feature = "std")]
 use memuse::DynamicUsage;
-use std::cmp::{Ord, Ordering};
-use std::convert::TryFrom;
-use std::fmt;
-use std::ops::{Add, Bound, RangeBounds, Sub};
 
 use crate::constants::{mainnet, regtest, testnet};
 
@@ -800,7 +810,8 @@
 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
 pub struct BlockHeight(u32);
 
-memuse::impl_no_dynamic_usage!(BlockHeight);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(BlockHeight);
 
 /// The height of the genesis block on a network.
 pub const H0: BlockHeight = BlockHeight(0);
@@ -848,7 +859,7 @@
 }
 
 impl TryFrom<u64> for BlockHeight {
-    type Error = std::num::TryFromIntError;
+    type Error = core::num::TryFromIntError;
 
     fn try_from(value: u64) -> Result<Self, Self::Error> {
         u32::try_from(value).map(BlockHeight)
@@ -862,7 +873,7 @@
 }
 
 impl TryFrom<i32> for BlockHeight {
-    type Error = std::num::TryFromIntError;
+    type Error = core::num::TryFromIntError;
 
     fn try_from(value: i32) -> Result<Self, Self::Error> {
         u32::try_from(value).map(BlockHeight)
@@ -870,7 +881,7 @@
 }
 
 impl TryFrom<i64> for BlockHeight {
-    type Error = std::num::TryFromIntError;
+    type Error = core::num::TryFromIntError;
 
     fn try_from(value: i64) -> Result<Self, Self::Error> {
         u32::try_from(value).map(BlockHeight)
@@ -986,7 +997,8 @@
     Regtest,
 }
 
-memuse::impl_no_dynamic_usage!(NetworkType);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(NetworkType);
 
 impl NetworkConstants for NetworkType {
     fn coin_type(&self) -> u32 {
@@ -1108,7 +1120,8 @@
 #[derive(PartialEq, Eq, Copy, Clone, Debug)]
 pub struct MainNetwork;
 
-memuse::impl_no_dynamic_usage!(MainNetwork);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(MainNetwork);
 
 /// The production network.
 pub const MAIN_NETWORK: MainNetwork = MainNetwork;
@@ -1137,7 +1150,8 @@
 #[derive(PartialEq, Eq, Copy, Clone, Debug)]
 pub struct TestNetwork;
 
-memuse::impl_no_dynamic_usage!(TestNetwork);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(TestNetwork);
 
 /// The test network.
 pub const TEST_NETWORK: TestNetwork = TestNetwork;
@@ -1171,7 +1185,8 @@
     TestNetwork,
 }
 
-memuse::impl_no_dynamic_usage!(Network);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(Network);
 
 impl Parameters for Network {
     fn network_type(&self) -> NetworkType {
@@ -1232,7 +1247,8 @@
     ZFuture,
 }
 
-memuse::impl_no_dynamic_usage!(NetworkUpgrade);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(NetworkUpgrade);
 
 impl fmt::Display for NetworkUpgrade {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -1322,7 +1338,8 @@
     ZFuture,
 }
 
-memuse::impl_no_dynamic_usage!(BranchId);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(BranchId);
 
 impl TryFrom<u32> for BranchId {
     type Error = &'static str;
@@ -1472,7 +1489,7 @@
             .height_bounds(params)
             .map_or(Strategy::boxed(Just(None)), |(lower, upper)| {
                 Strategy::boxed(
-                    (lower.0..upper.map_or(std::u32::MAX, |u| u.0))
+                    (lower.0..upper.map_or(core::u32::MAX, |u| u.0))
                         .prop_map(|h| Some(BlockHeight(h))),
                 )
             })
@@ -1491,7 +1508,6 @@
     use super::{
         BlockHeight, BranchId, NetworkUpgrade, Parameters, MAIN_NETWORK, UPGRADES_IN_ORDER,
     };
-    use std::convert::TryFrom;
 
     #[test]
     fn nu_ordering() {
diff --git a/rustdoc/latest/src/zcash_protocol/lib.rs.html b/rustdoc/latest/src/zcash_protocol/lib.rs.html
index c9f706608..bc9692351 100644
--- a/rustdoc/latest/src/zcash_protocol/lib.rs.html
+++ b/rustdoc/latest/src/zcash_protocol/lib.rs.html
@@ -57,24 +57,38 @@
 56
 57
 58
-59
//! *A crate for Zcash protocol constants and value types.*
+59
+60
+61
+62
+63
+64
+65
+66
//! *A crate for Zcash protocol constants and value types.*
 //!
 //! `zcash_protocol` contains Rust structs, traits and functions that provide the network constants
 //! for the Zcash main and test networks, as well types for representing ZEC amounts and value
 //! balances.
 //!
-//! ## Feature flags
-#![doc = document_features::document_features!()]
+#![cfg_attr(feature = "std", doc = "## Feature flags")]
+#![cfg_attr(feature = "std", doc = document_features::document_features!())]
 //!
 
-#![cfg_attr(docsrs, feature(doc_cfg))]
+#![no_std]
+#![cfg_attr(docsrs, feature(doc_cfg))]
 #![cfg_attr(docsrs, feature(doc_auto_cfg))]
 // Catch documentation errors caused by code changes.
 #![deny(rustdoc::broken_intra_doc_links)]
 // Temporary until we have addressed all Result<T, ()> cases.
 #![allow(clippy::result_unit_err)]
 
-use core::fmt;
+#[cfg_attr(any(test, feature = "test-dependencies"), macro_use)]
+extern crate alloc;
+
+#[cfg(feature = "std")]
+extern crate std;
+
+use core::fmt;
 
 pub mod consensus;
 pub mod constants;
diff --git a/rustdoc/latest/src/zcash_protocol/memo.rs.html b/rustdoc/latest/src/zcash_protocol/memo.rs.html
index 2acaee866..2c3f3e0bd 100644
--- a/rustdoc/latest/src/zcash_protocol/memo.rs.html
+++ b/rustdoc/latest/src/zcash_protocol/memo.rs.html
@@ -415,13 +415,25 @@
 414
 415
 416
-417
//! Structs for handling encrypted memos.
-
-use std::cmp::Ordering;
-use std::error;
-use std::fmt;
-use std::ops::Deref;
-use std::str;
+417
+418
+419
+420
+421
+422
+423
+424
//! Structs for handling encrypted memos.
+
+use alloc::borrow::ToOwned;
+use alloc::boxed::Box;
+use alloc::string::String;
+use core::cmp::Ordering;
+use core::fmt;
+use core::ops::Deref;
+use core::str;
+
+#[cfg(feature = "std")]
+use std::error;
 
 /// Format a byte array as a colon-delimited hex string.
 ///
@@ -447,7 +459,7 @@
 /// Errors that may result from attempting to construct an invalid memo.
 #[derive(Debug, Clone, PartialEq, Eq)]
 pub enum Error {
-    InvalidUtf8(std::str::Utf8Error),
+    InvalidUtf8(core::str::Utf8Error),
     TooLong(usize),
 }
 
@@ -460,7 +472,8 @@
     }
 }
 
-impl error::Error for Error {}
+#[cfg(feature = "std")]
+impl error::Error for Error {}
 
 /// The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.
 #[derive(Clone)]
@@ -698,7 +711,8 @@
 
 #[cfg(test)]
 mod tests {
-    use std::str::FromStr;
+    use alloc::boxed::Box;
+    use alloc::str::FromStr;
 
     use super::{Error, Memo, MemoBytes};
 
diff --git a/rustdoc/latest/src/zcash_protocol/value.rs.html b/rustdoc/latest/src/zcash_protocol/value.rs.html
index 93a580845..08e41c227 100644
--- a/rustdoc/latest/src/zcash_protocol/value.rs.html
+++ b/rustdoc/latest/src/zcash_protocol/value.rs.html
@@ -567,13 +567,23 @@
 566
 567
 568
-569
use std::convert::{Infallible, TryFrom};
-use std::error;
-use std::iter::Sum;
-use std::num::NonZeroU64;
-use std::ops::{Add, Div, Mul, Neg, Sub};
-
-use memuse::DynamicUsage;
+569
+570
+571
+572
+573
+574
+575
use core::convert::{Infallible, TryFrom};
+use core::fmt;
+use core::iter::Sum;
+use core::num::NonZeroU64;
+use core::ops::{Add, Div, Mul, Neg, Sub};
+
+#[cfg(feature = "std")]
+use std::error;
+
+#[cfg(feature = "std")]
+use memuse::DynamicUsage;
 
 pub const COIN: u64 = 1_0000_0000;
 pub const MAX_MONEY: u64 = 21_000_000 * COIN;
@@ -590,7 +600,8 @@
 #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Eq, Ord)]
 pub struct ZatBalance(i64);
 
-memuse::impl_no_dynamic_usage!(ZatBalance);
+#[cfg(feature = "std")]
+memuse::impl_no_dynamic_usage!(ZatBalance);
 
 impl ZatBalance {
     /// Returns a zero-valued ZatBalance.
@@ -1011,10 +1022,11 @@
     Underflow,
 }
 
-impl error::Error for BalanceError {}
+#[cfg(feature = "std")]
+impl error::Error for BalanceError {}
 
-impl std::fmt::Display for BalanceError {
-    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+impl fmt::Display for BalanceError {
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         match &self {
             BalanceError::Overflow => {
                 write!(
diff --git a/rustdoc/latest/zcash_client_backend/address/enum.Address.html b/rustdoc/latest/zcash_client_backend/address/enum.Address.html
index 82281c8fe..5f6ab5e4e 100644
--- a/rustdoc/latest/zcash_client_backend/address/enum.Address.html
+++ b/rustdoc/latest/zcash_client_backend/address/enum.Address.html
@@ -1,4 +1,4 @@
-Address in zcash_client_backend::address - Rust
zcash_client_backend::address

Enum Address

Source
pub enum Address {
+Address in zcash_client_backend::address - Rust
zcash_client_backend::address

Enum Address

pub enum Address {
     Sapling(PaymentAddress),
     Transparent(TransparentAddress),
     Unified(UnifiedAddress),
@@ -8,35 +8,35 @@
 
§

Transparent(TransparentAddress)

A transparent address corresponding to either a public key hash or a script hash.

§

Unified(UnifiedAddress)

A ZIP 316 Unified Address.

§

Tex([u8; 20])

A ZIP 320 transparent-source-only P2PKH address, or “TEX address”.

-

Implementations§

Source§

impl Address

Source

pub fn decode<P>(params: &P, s: &str) -> Option<Address>
where +

Implementations§

§

impl Address

pub fn decode<P>(params: &P, s: &str) -> Option<Address>
where P: Parameters,

Attempts to decode an Address value from its [ZcashAddress] encoded representation.

Returns None if any error is encountered in decoding. Use [Self::try_from_zcash_address(s.parse()?)?] if you need detailed error information.

-
Source

pub fn try_from_zcash_address<P>( +

pub fn try_from_zcash_address<P>( params: &P, zaddr: ZcashAddress, ) -> Result<Address, ConversionError<&'static str>>
where P: Parameters,

Attempts to decode an Address value from its [ZcashAddress] encoded representation.

-
Source

pub fn to_zcash_address<P>(&self, params: &P) -> ZcashAddress
where +

pub fn to_zcash_address<P>(&self, params: &P) -> ZcashAddress
where P: Parameters,

Converts this Address to its encoded [ZcashAddress] representation.

-
Source

pub fn encode<P>(&self, params: &P) -> String
where +

pub fn encode<P>(&self, params: &P) -> String
where P: Parameters,

Converts this Address to its encoded string representation.

-
Source

pub fn can_receive_as(&self, pool_type: PoolType) -> bool

Returns whether or not this Address can receive funds in the specified pool.

-

Trait Implementations§

Source§

impl Clone for Address

Source§

fn clone(&self) -> Address

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Address

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<PaymentAddress> for Address

Available on crate feature sapling only.
Source§

fn from(addr: PaymentAddress) -> Address

Converts to this type from the input type.
Source§

impl From<TransparentAddress> for Address

Source§

fn from(addr: TransparentAddress) -> Address

Converts to this type from the input type.
Source§

impl From<UnifiedAddress> for Address

Source§

fn from(addr: UnifiedAddress) -> Address

Converts to this type from the input type.
Source§

impl PartialEq for Address

Source§

fn eq(&self, other: &Address) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl TryFromRawAddress for Address

Source§

type Error = &'static str

Conversion errors for the user type (e.g. failing to parse the data passed to -[Self::try_from_raw_sapling] as a valid Sapling address).
Source§

fn try_from_raw_sapling( +

pub fn can_receive_as(&self, pool_type: PoolType) -> bool

Returns whether or not this Address can receive funds in the specified pool.

+

Trait Implementations§

§

impl Clone for Address

§

fn clone(&self) -> Address

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Address

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<PaymentAddress> for Address

Available on crate feature sapling only.
§

fn from(addr: PaymentAddress) -> Address

Converts to this type from the input type.
§

impl From<TransparentAddress> for Address

§

fn from(addr: TransparentAddress) -> Address

Converts to this type from the input type.
§

impl From<UnifiedAddress> for Address

§

fn from(addr: UnifiedAddress) -> Address

Converts to this type from the input type.
§

impl PartialEq for Address

§

fn eq(&self, other: &Address) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
§

impl TryFromRawAddress for Address

§

type Error = &'static str

Conversion errors for the user type (e.g. failing to parse the data passed to +[Self::try_from_raw_sapling] as a valid Sapling address).
§

fn try_from_raw_sapling( data: [u8; 43], -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

Source§

fn try_from_raw_unified( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

§

fn try_from_raw_unified( ua: Address, -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

Source§

fn try_from_raw_transparent_p2pkh( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

§

fn try_from_raw_transparent_p2pkh( data: [u8; 20], -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

Source§

fn try_from_raw_transparent_p2sh( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

§

fn try_from_raw_transparent_p2sh( data: [u8; 20], -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

Source§

fn try_from_raw_tex( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

§

fn try_from_raw_tex( data: [u8; 20], ) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>

§

fn try_from_raw_sprout( data: [u8; 64], -) -> Result<Self, ConversionError<Self::Error>>

Source§

impl Eq for Address

Source§

impl StructuralPartialEq for Address

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<Self, ConversionError<Self::Error>>

§

impl Eq for Address

§

impl StructuralPartialEq for Address

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html b/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html index fcbba54a0..b42b9f29d 100644 --- a/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html +++ b/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html @@ -1,15 +1,15 @@ -Receiver in zcash_client_backend::address - Rust
zcash_client_backend::address

Enum Receiver

Source
pub enum Receiver {
+Receiver in zcash_client_backend::address - Rust
zcash_client_backend::address

Enum Receiver

pub enum Receiver {
     Sapling(PaymentAddress),
     Transparent(TransparentAddress),
 }
Expand description

An enumeration of protocol-level receiver types.

While these correspond to unified address receiver types, this is a distinct type because it is used to represent the protocol-level recipient of a transfer, instead of a part of an encoded address.

-

Variants§

§

Sapling(PaymentAddress)

Available on crate feature sapling only.
§

Transparent(TransparentAddress)

Implementations§

Source§

impl Receiver

Source

pub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress

Converts this receiver to a [ZcashAddress] for the given network.

+

Variants§

§

Sapling(PaymentAddress)

Available on crate feature sapling only.
§

Transparent(TransparentAddress)

Implementations§

§

impl Receiver

pub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress

Converts this receiver to a [ZcashAddress] for the given network.

This conversion function selects the least-capable address format possible; this means that Orchard receivers will be rendered as Unified addresses, Sapling receivers will be rendered as bare Sapling addresses, and Transparent receivers will be rendered as taddrs.

-
Source

pub fn corresponds(&self, addr: &ZcashAddress) -> bool

Returns whether or not this receiver corresponds to addr, or is contained +

pub fn corresponds(&self, addr: &ZcashAddress) -> bool

Returns whether or not this receiver corresponds to addr, or is contained in addr when the latter is a Unified Address.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where diff --git a/rustdoc/latest/zcash_client_backend/address/index.html b/rustdoc/latest/zcash_client_backend/address/index.html index e7a16670c..834340fa5 100644 --- a/rustdoc/latest/zcash_client_backend/address/index.html +++ b/rustdoc/latest/zcash_client_backend/address/index.html @@ -1,2 +1,2 @@ -zcash_client_backend::address - Rust
zcash_client_backend

Module address

Source
Expand description

Structs for handling supported address types.

+zcash_client_backend::address - Rust
zcash_client_backend

Module address

Expand description

Structs for handling supported address types.

Modules§

  • testing(orchard or sapling or transparent-inputs) and test-dependencies

Structs§

Enums§

  • An address that funds can be sent to.
  • An enumeration of protocol-level receiver types.
\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html index 3fd880199..2e0a63514 100644 --- a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html +++ b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html @@ -1,25 +1,25 @@ -UnifiedAddress in zcash_client_backend::address - Rust
zcash_client_backend::address

Struct UnifiedAddress

Source
pub struct UnifiedAddress { /* private fields */ }
Expand description

A Unified Address.

-

Implementations§

Source§

impl UnifiedAddress

Source

pub fn from_receivers( +UnifiedAddress in zcash_client_backend::address - Rust
zcash_client_backend::address

Struct UnifiedAddress

pub struct UnifiedAddress { /* private fields */ }
Expand description

A Unified Address.

+

Implementations§

§

impl UnifiedAddress

pub fn from_receivers( sapling: Option<PaymentAddress>, transparent: Option<TransparentAddress>, ) -> Option<UnifiedAddress>

Constructs a Unified Address from a given set of receivers.

Returns None if the receivers would produce an invalid Unified Address (namely, if no shielded receiver is provided).

-
Source

pub fn has_orchard(&self) -> bool

Returns whether this address has an Orchard receiver.

+

pub fn has_orchard(&self) -> bool

Returns whether this address has an Orchard receiver.

This method is available irrespective of whether the orchard feature flag is enabled.

-
Source

pub fn has_sapling(&self) -> bool

Returns whether this address has a Sapling receiver.

-
Source

pub fn sapling(&self) -> Option<&PaymentAddress>

Available on crate feature sapling only.

Returns the Sapling receiver within this Unified Address, if any.

-
Source

pub fn has_transparent(&self) -> bool

Returns whether this address has a Transparent receiver.

-
Source

pub fn transparent(&self) -> Option<&TransparentAddress>

Returns the transparent receiver within this Unified Address, if any.

-
Source

pub fn unknown(&self) -> &[(u32, Vec<u8>)]

Returns the set of unknown receivers of the unified address.

-
Source

pub fn encode<P>(&self, params: &P) -> String
where +

pub fn has_sapling(&self) -> bool

Returns whether this address has a Sapling receiver.

+

pub fn sapling(&self) -> Option<&PaymentAddress>

Available on crate feature sapling only.

Returns the Sapling receiver within this Unified Address, if any.

+

pub fn has_transparent(&self) -> bool

Returns whether this address has a Transparent receiver.

+

pub fn transparent(&self) -> Option<&TransparentAddress>

Returns the transparent receiver within this Unified Address, if any.

+

pub fn unknown(&self) -> &[(u32, Vec<u8>)]

Returns the set of unknown receivers of the unified address.

+

pub fn encode<P>(&self, params: &P) -> String
where P: Parameters,

Returns the string encoding of this UnifiedAddress for the given network.

-
Source

pub fn receiver_types(&self) -> Vec<Typecode>

Returns the set of receiver typecodes.

-

Trait Implementations§

Source§

impl<P> AddressCodec<P> for UnifiedAddress
where - P: Parameters,

Source§

type Error = String

Source§

fn encode(&self, params: &P) -> String

Encode a Zcash address. Read more
Source§

fn decode(params: &P, address: &str) -> Result<UnifiedAddress, String>

Decodes a Zcash address from its string representation. Read more
Source§

impl Clone for UnifiedAddress

Source§

fn clone(&self) -> UnifiedAddress

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnifiedAddress

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<UnifiedAddress> for Address

Source§

fn from(addr: UnifiedAddress) -> Address

Converts to this type from the input type.
Source§

impl PartialEq for UnifiedAddress

Source§

fn eq(&self, other: &UnifiedAddress) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl TryFrom<Address> for UnifiedAddress

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from( +

pub fn receiver_types(&self) -> Vec<Typecode>

Returns the set of receiver typecodes.

+

Trait Implementations§

§

impl<P> AddressCodec<P> for UnifiedAddress
where + P: Parameters,

§

type Error = String

§

fn encode(&self, params: &P) -> String

Encode a Zcash address. Read more
§

fn decode(params: &P, address: &str) -> Result<UnifiedAddress, String>

Decodes a Zcash address from its string representation. Read more
§

impl Clone for UnifiedAddress

§

fn clone(&self) -> UnifiedAddress

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for UnifiedAddress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<UnifiedAddress> for Address

§

fn from(addr: UnifiedAddress) -> Address

Converts to this type from the input type.
§

impl PartialEq for UnifiedAddress

§

fn eq(&self, other: &UnifiedAddress) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
§

impl TryFrom<Address> for UnifiedAddress

§

type Error = &'static str

The type returned in the event of a conversion error.
§

fn try_from( ua: Address, -) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>

Performs the conversion.
Source§

impl Eq for UnifiedAddress

Source§

impl StructuralPartialEq for UnifiedAddress

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>

Performs the conversion.
§

impl Eq for UnifiedAddress

§

impl StructuralPartialEq for UnifiedAddress

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html index dae0e2a2d..987f22732 100644 --- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html +++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html @@ -1,3 +1,3 @@ -arb_addr in zcash_client_backend::address::testing - Rust
zcash_client_backend::address::testing

Function arb_addr

Source
pub fn arb_addr(
+arb_addr in zcash_client_backend::address::testing - Rust
zcash_client_backend::address::testing

Function arb_addr

pub fn arb_addr(
     request: UnifiedAddressRequest,
 ) -> impl Strategy<Value = Address>
Available on (crate features orchard or sapling or transparent-inputs) and crate feature test-dependencies and crate feature sapling only.
\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html index 5fd797ed4..dfec70de0 100644 --- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html +++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html @@ -1,4 +1,4 @@ -arb_unified_addr in zcash_client_backend::address::testing - Rust
zcash_client_backend::address::testing

Function arb_unified_addr

Source
pub fn arb_unified_addr(
+arb_unified_addr in zcash_client_backend::address::testing - Rust
zcash_client_backend::address::testing

Function arb_unified_addr

pub fn arb_unified_addr(
     params: Network,
     request: UnifiedAddressRequest,
 ) -> impl Strategy<Value = UnifiedAddress>
Available on (crate features orchard or sapling or transparent-inputs) and crate feature test-dependencies only.
\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/address/testing/index.html b/rustdoc/latest/zcash_client_backend/address/testing/index.html index e04ddc071..e31de0773 100644 --- a/rustdoc/latest/zcash_client_backend/address/testing/index.html +++ b/rustdoc/latest/zcash_client_backend/address/testing/index.html @@ -1 +1 @@ -zcash_client_backend::address::testing - Rust
zcash_client_backend::address

Module testing

Source
Available on (crate features orchard or sapling or transparent-inputs) and crate feature test-dependencies only.

Functions§

\ No newline at end of file +zcash_client_backend::address::testing - Rust
zcash_client_backend::address

Module testing

Available on (crate features orchard or sapling or transparent-inputs) and crate feature test-dependencies only.

Functions§

\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html index dfcb3bbb1..456e31611 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html +++ b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html @@ -1,4 +1,4 @@ -Bech32DecodeError in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Enum Bech32DecodeError

Source
pub enum Bech32DecodeError {
+Bech32DecodeError in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Enum Bech32DecodeError

pub enum Bech32DecodeError {
     Bech32Error(Error),
     IncorrectVariant(Variant),
     ReadError,
@@ -6,8 +6,8 @@
         expected: String,
         actual: String,
     },
-}
Available on crate feature sapling only.

Variants§

§

Bech32Error(Error)

§

IncorrectVariant(Variant)

§

ReadError

§

HrpMismatch

Fields

§expected: String
§actual: String

Trait Implementations§

Source§

impl Clone for Bech32DecodeError

Source§

fn clone(&self) -> Bech32DecodeError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Bech32DecodeError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Bech32DecodeError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for Bech32DecodeError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for Bech32DecodeError

Source§

fn from(err: Error) -> Bech32DecodeError

Converts to this type from the input type.
Source§

impl PartialEq for Bech32DecodeError

Source§

fn eq(&self, other: &Bech32DecodeError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for Bech32DecodeError

Source§

impl StructuralPartialEq for Bech32DecodeError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +}

Available on crate feature sapling only.

Variants§

§

Bech32Error(Error)

§

IncorrectVariant(Variant)

§

ReadError

§

HrpMismatch

Fields

§expected: String
§actual: String

Trait Implementations§

§

impl Clone for Bech32DecodeError

§

fn clone(&self) -> Bech32DecodeError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Bech32DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for Bech32DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for Bech32DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl From<Error> for Bech32DecodeError

§

fn from(err: Error) -> Bech32DecodeError

Converts to this type from the input type.
§

impl PartialEq for Bech32DecodeError

§

fn eq(&self, other: &Bech32DecodeError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
§

impl Eq for Bech32DecodeError

§

impl StructuralPartialEq for Bech32DecodeError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html index 130027814..0197804b8 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html +++ b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html @@ -1,7 +1,7 @@ -TransparentCodecError in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Enum TransparentCodecError

Source
pub enum TransparentCodecError {
+TransparentCodecError in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Enum TransparentCodecError

pub enum TransparentCodecError {
     UnsupportedAddressType(String),
     Base58(Error),
-}

Variants§

§

UnsupportedAddressType(String)

§

Base58(Error)

Trait Implementations§

Source§

impl Debug for TransparentCodecError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for TransparentCodecError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for TransparentCodecError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +}

Variants§

§

UnsupportedAddressType(String)

§

Base58(Error)

Trait Implementations§

§

impl Debug for TransparentCodecError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for TransparentCodecError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for TransparentCodecError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html index 7e1997f1f..9f03ba990 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html @@ -1,4 +1,4 @@ -decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_extended_full_viewing_key

Source
pub fn decode_extended_full_viewing_key(
+decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_extended_full_viewing_key

pub fn decode_extended_full_viewing_key(
     hrp: &str,
     s: &str,
 ) -> Result<ExtendedFullViewingKey, Bech32DecodeError>
Available on crate feature sapling only.
Expand description

Decodes an ExtendedFullViewingKey from a Bech32-encoded string, verifying that it matches diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html index 82cc892a9..9406545a9 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html @@ -1,4 +1,4 @@ -decode_extended_spending_key in zcash_client_backend::encoding - Rust

zcash_client_backend::encoding

Function decode_extended_spending_key

Source
pub fn decode_extended_spending_key(
+decode_extended_spending_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_extended_spending_key

pub fn decode_extended_spending_key(
     hrp: &str,
     s: &str,
 ) -> Result<ExtendedSpendingKey, Bech32DecodeError>
Available on crate feature sapling only.
Expand description

Decodes an ExtendedSpendingKey from a Bech32-encoded string.

diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html index f08468b62..1c1ee3159 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html @@ -1,4 +1,4 @@ -decode_extfvk_with_network in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_extfvk_with_network

Source
pub fn decode_extfvk_with_network(
+decode_extfvk_with_network in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_extfvk_with_network

pub fn decode_extfvk_with_network(
     s: &str,
 ) -> Result<(NetworkType, ExtendedFullViewingKey), Bech32DecodeError>
Available on crate feature sapling only.
Expand description

Decodes an ExtendedFullViewingKey and the [NetworkType] that it is intended for use with from a Bech32-encoded string.

diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html index 6268aa8c3..7fb212659 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html @@ -1,4 +1,4 @@ -decode_payment_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_payment_address

Source
pub fn decode_payment_address(
+decode_payment_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_payment_address

pub fn decode_payment_address(
     hrp: &str,
     s: &str,
 ) -> Result<PaymentAddress, Bech32DecodeError>
Available on crate feature sapling only.
Expand description

Decodes a PaymentAddress from a Bech32-encoded string.

diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html index 686d2f775..6fcf664ea 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html @@ -1,4 +1,4 @@ -decode_transparent_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_transparent_address

Source
pub fn decode_transparent_address(
+decode_transparent_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function decode_transparent_address

pub fn decode_transparent_address(
     pubkey_version: &[u8],
     script_version: &[u8],
     s: &str,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
index 5cf6ea13a..dd025704c 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_extended_full_viewing_key

Source
pub fn encode_extended_full_viewing_key(
+encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_extended_full_viewing_key

pub fn encode_extended_full_viewing_key(
     hrp: &str,
     extfvk: &ExtendedFullViewingKey,
 ) -> String
Available on crate feature sapling only.
Expand description

Writes an ExtendedFullViewingKey as a Bech32-encoded string.

diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html index 9b0ac9acc..119e6ea28 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html @@ -1,4 +1,4 @@ -encode_extended_spending_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_extended_spending_key

Source
pub fn encode_extended_spending_key(
+encode_extended_spending_key in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_extended_spending_key

pub fn encode_extended_spending_key(
     hrp: &str,
     extsk: &ExtendedSpendingKey,
 ) -> String
Available on crate feature sapling only.
Expand description

Writes an ExtendedSpendingKey as a Bech32-encoded string.

diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html index 8a6d33a7e..0b687dae2 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html @@ -1,4 +1,4 @@ -encode_payment_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_payment_address

Source
pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling only.
Expand description

Writes a PaymentAddress as a Bech32-encoded string.

+encode_payment_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_payment_address

pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling only.
Expand description

Writes a PaymentAddress as a Bech32-encoded string.

§Examples

use group::Group;
 use sapling::{Diversifier, PaymentAddress};
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
index 523a89b3b..ad25618d9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
@@ -1,4 +1,4 @@
-encode_payment_address_p in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_payment_address_p

Source
pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> String
where +encode_payment_address_p in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_payment_address_p

pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> String
where P: Parameters,
Available on crate feature sapling only.
Expand description

Writes a PaymentAddress as a Bech32-encoded string using the human-readable prefix values defined in the specified network parameters.

diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html index b77483549..fde244182 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html +++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html @@ -1,4 +1,4 @@ -encode_transparent_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_transparent_address

Source
pub fn encode_transparent_address(
+encode_transparent_address in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_transparent_address

pub fn encode_transparent_address(
     pubkey_version: &[u8],
     script_version: &[u8],
     addr: &TransparentAddress,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
index f1357e073..01219e937 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
@@ -1,4 +1,4 @@
-encode_transparent_address_p in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_transparent_address_p

Source
pub fn encode_transparent_address_p<P>(
+encode_transparent_address_p in zcash_client_backend::encoding - Rust
zcash_client_backend::encoding

Function encode_transparent_address_p

pub fn encode_transparent_address_p<P>(
     params: &P,
     addr: &TransparentAddress,
 ) -> String
where diff --git a/rustdoc/latest/zcash_client_backend/encoding/index.html b/rustdoc/latest/zcash_client_backend/encoding/index.html index af51e48c4..28ab56b10 100644 --- a/rustdoc/latest/zcash_client_backend/encoding/index.html +++ b/rustdoc/latest/zcash_client_backend/encoding/index.html @@ -1,4 +1,4 @@ -zcash_client_backend::encoding - Rust
zcash_client_backend

Module encoding

Source
Expand description

Encoding and decoding functions for Zcash key and address structs.

+zcash_client_backend::encoding - Rust
zcash_client_backend

Module encoding

Expand description

Encoding and decoding functions for Zcash key and address structs.

Human-Readable Prefixes (HRPs) for Bech32 encodings are located in the [zcash_primitives::constants] module.

Enums§

Traits§

  • A trait for encoding and decoding Zcash addresses.

Functions§

Implementors§

§

impl<P> AddressCodec<P> for UnifiedAddress
where + P: Parameters,

\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html index 7090a86da..2b600f800 100644 --- a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html +++ b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html @@ -1,4 +1,4 @@ -AddressGenerationError in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum AddressGenerationError

Source
pub enum AddressGenerationError {
+AddressGenerationError in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum AddressGenerationError

pub enum AddressGenerationError {
     InvalidTransparentChildIndex(DiversifierIndex),
     InvalidSaplingDiversifierIndex(DiversifierIndex),
     DiversifierSpaceExhausted,
@@ -16,7 +16,7 @@
 address lacks an item of the requested type.

§

ShieldedReceiverRequired

A Unified address cannot be generated without at least one shielded receiver being included.

-

Trait Implementations§

Source§

impl Clone for AddressGenerationError

Source§

fn clone(&self) -> AddressGenerationError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AddressGenerationError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for AddressGenerationError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for AddressGenerationError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for AddressGenerationError

§

fn clone(&self) -> AddressGenerationError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for AddressGenerationError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for AddressGenerationError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for AddressGenerationError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html index a2a2a62df..e9e77bb08 100644 --- a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html +++ b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html @@ -1,4 +1,4 @@ -DecodingError in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum DecodingError

Source
pub enum DecodingError {
+DecodingError in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum DecodingError

pub enum DecodingError {
     ReadError(&'static str),
     EraInvalid,
     EraMismatch(Era),
@@ -9,8 +9,8 @@
     KeyDataInvalid(Typecode),
 }
Expand description

A type for errors that can occur when decoding keys from their serialized representations.

Variants§

§

ReadError(&'static str)

Available on crate feature unstable only.
§

EraInvalid

Available on crate feature unstable only.
§

EraMismatch(Era)

Available on crate feature unstable only.
§

TypecodeInvalid

Available on crate feature unstable only.
§

LengthInvalid

Available on crate feature unstable only.
§

LengthMismatch(Typecode, u32)

Available on crate feature unstable only.
§

InsufficientData(Typecode)

Available on crate feature unstable only.
§

KeyDataInvalid(Typecode)

The key data could not be decoded from its string representation to a valid key.

-

Trait Implementations§

Source§

impl Debug for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for DecodingError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for DecodingError

Source§

fn eq(&self, other: &DecodingError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for DecodingError

Source§

impl StructuralPartialEq for DecodingError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for DecodingError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodingError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodingError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl PartialEq for DecodingError

§

fn eq(&self, other: &DecodingError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
§

impl Eq for DecodingError

§

impl StructuralPartialEq for DecodingError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html index 981b53d27..78ea5d625 100644 --- a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html +++ b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html @@ -1,6 +1,6 @@ -DerivationError in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum DerivationError

Source
pub enum DerivationError {
+DerivationError in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum DerivationError

pub enum DerivationError {
     Transparent(Error),
-}

Variants§

§

Transparent(Error)

Available on crate feature transparent-inputs only.

Trait Implementations§

Source§

impl Debug for DerivationError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for DerivationError

Source§

fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for DerivationError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for DerivationError

Available on crate feature transparent-inputs only.
Source§

fn from(e: Error) -> DerivationError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +}

Variants§

§

Transparent(Error)

Available on crate feature transparent-inputs only.

Trait Implementations§

§

impl Debug for DerivationError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DerivationError

§

fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DerivationError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl From<Error> for DerivationError

Available on crate feature transparent-inputs only.
§

fn from(e: Error) -> DerivationError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.Era.html b/rustdoc/latest/zcash_client_backend/keys/enum.Era.html index 8f15445d3..e9d293f07 100644 --- a/rustdoc/latest/zcash_client_backend/keys/enum.Era.html +++ b/rustdoc/latest/zcash_client_backend/keys/enum.Era.html @@ -1,4 +1,4 @@ -Era in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum Era

Source
pub enum Era {
+Era in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Enum Era

pub enum Era {
     Orchard,
 }
Available on crate feature unstable only.
Expand description

A version identifier for the encoding of unified spending keys.

Each era corresponds to a range of block heights. During an era, the unified spending key @@ -7,8 +7,8 @@ within the era’s block range.

Variants§

§

Orchard

The Orchard era begins at Orchard activation, and will end if a new pool that requires a change to unified spending keys is introduced.

-

Trait Implementations§

Source§

impl Debug for Era

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Era

Source§

fn eq(&self, other: &Era) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for Era

Source§

impl StructuralPartialEq for Era

Auto Trait Implementations§

§

impl Freeze for Era

§

impl RefUnwindSafe for Era

§

impl Send for Era

§

impl Sync for Era

§

impl Unpin for Era

§

impl UnwindSafe for Era

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for Era

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for Era

§

fn eq(&self, other: &Era) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
§

impl Eq for Era

§

impl StructuralPartialEq for Era

Auto Trait Implementations§

§

impl Freeze for Era

§

impl RefUnwindSafe for Era

§

impl Send for Era

§

impl Sync for Era

§

impl Unpin for Era

§

impl UnwindSafe for Era

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/index.html b/rustdoc/latest/zcash_client_backend/keys/index.html index d4201be06..8bb98b059 100644 --- a/rustdoc/latest/zcash_client_backend/keys/index.html +++ b/rustdoc/latest/zcash_client_backend/keys/index.html @@ -1,2 +1,2 @@ -zcash_client_backend::keys - Rust
zcash_client_backend

Module keys

Source
Expand description

Helper functions for managing light client key material.

+zcash_client_backend::keys - Rust
zcash_client_backend

Module keys

Expand description

Helper functions for managing light client key material.

Modules§

Structs§

Enums§

  • Errors that can occur in the generation of unified addresses.
  • A type for errors that can occur when decoding keys from their serialized representations.
  • Eraunstable
    A version identifier for the encoding of unified spending keys.
\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/keys/sapling/fn.spending_key.html b/rustdoc/latest/zcash_client_backend/keys/sapling/fn.spending_key.html index d73732a3b..9fda2c16e 100644 --- a/rustdoc/latest/zcash_client_backend/keys/sapling/fn.spending_key.html +++ b/rustdoc/latest/zcash_client_backend/keys/sapling/fn.spending_key.html @@ -1,4 +1,4 @@ -spending_key in zcash_client_backend::keys::sapling - Rust
zcash_client_backend::keys::sapling

Function spending_key

Source
pub fn spending_key(
+spending_key in zcash_client_backend::keys::sapling - Rust
zcash_client_backend::keys::sapling

Function spending_key

pub fn spending_key(
     seed: &[u8],
     coin_type: u32,
     account: AccountId,
diff --git a/rustdoc/latest/zcash_client_backend/keys/sapling/index.html b/rustdoc/latest/zcash_client_backend/keys/sapling/index.html
index eeabb759a..bff62755d 100644
--- a/rustdoc/latest/zcash_client_backend/keys/sapling/index.html
+++ b/rustdoc/latest/zcash_client_backend/keys/sapling/index.html
@@ -1,2 +1,2 @@
-zcash_client_backend::keys::sapling - Rust
zcash_client_backend::keys

Module sapling

Source
Available on crate feature sapling only.

Structs§

Functions§

Trait Implementations§

§

impl Clone for UnifiedAddressRequest

§

fn clone(&self) -> UnifiedAddressRequest

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for UnifiedAddressRequest

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Copy for UnifiedAddressRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedFullViewingKey.html b/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedFullViewingKey.html index f19286bd7..ff761b45b 100644 --- a/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedFullViewingKey.html +++ b/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedFullViewingKey.html @@ -1,26 +1,26 @@ -UnifiedFullViewingKey in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Struct UnifiedFullViewingKey

Source
pub struct UnifiedFullViewingKey { /* private fields */ }
Expand description

A ZIP 316 unified full viewing key.

-

Implementations§

Source§

impl UnifiedFullViewingKey

Source

pub fn new( +UnifiedFullViewingKey in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Struct UnifiedFullViewingKey

pub struct UnifiedFullViewingKey { /* private fields */ }
Expand description

A ZIP 316 unified full viewing key.

+

Implementations§

§

impl UnifiedFullViewingKey

pub fn new( transparent: Option<AccountPubKey>, sapling: Option<DiversifiableFullViewingKey>, ) -> Result<UnifiedFullViewingKey, DerivationError>

Available on crate feature test-dependencies only.

Construct a new unified full viewing key.

This method is only available when the test-dependencies feature is enabled, as derivation from the USK or deserialization from the serialized form should be used instead.

-
Source

pub fn from_sapling_extended_full_viewing_key( +

pub fn from_sapling_extended_full_viewing_key( sapling: ExtendedFullViewingKey, -) -> Result<UnifiedFullViewingKey, DerivationError>

Available on crate features sapling and unstable only.
Source

pub fn decode<P>( +) -> Result<UnifiedFullViewingKey, DerivationError>

Available on crate features sapling and unstable only.

pub fn decode<P>( params: &P, encoding: &str, ) -> Result<UnifiedFullViewingKey, String>
where P: Parameters,

Parses a UnifiedFullViewingKey from its ZIP 316 string encoding.

-
Source

pub fn parse(ufvk: &Ufvk) -> Result<UnifiedFullViewingKey, DecodingError>

Parses a UnifiedFullViewingKey from its ZIP 316 string encoding.

-
Source

pub fn encode<P>(&self, params: &P) -> String
where +

pub fn parse(ufvk: &Ufvk) -> Result<UnifiedFullViewingKey, DecodingError>

Parses a UnifiedFullViewingKey from its ZIP 316 string encoding.

+

pub fn encode<P>(&self, params: &P) -> String
where P: Parameters,

Returns the string encoding of this UnifiedFullViewingKey for the given network.

-
Source

pub fn to_unified_incoming_viewing_key(&self) -> UnifiedIncomingViewingKey

Derives a Unified Incoming Viewing Key from this Unified Full Viewing Key.

-
Source

pub fn transparent(&self) -> Option<&AccountPubKey>

Available on crate feature transparent-inputs only.

Returns the transparent component of the unified key at the +

pub fn to_unified_incoming_viewing_key(&self) -> UnifiedIncomingViewingKey

Derives a Unified Incoming Viewing Key from this Unified Full Viewing Key.

+

pub fn transparent(&self) -> Option<&AccountPubKey>

Available on crate feature transparent-inputs only.

Returns the transparent component of the unified key at the BIP44 path m/44'/<coin_type>'/<account>'.

-
Source

pub fn sapling(&self) -> Option<&DiversifiableFullViewingKey>

Available on crate feature sapling only.

Returns the Sapling diversifiable full viewing key component of this unified key.

-
Source

pub fn address( +

pub fn sapling(&self) -> Option<&DiversifiableFullViewingKey>

Available on crate feature sapling only.

Returns the Sapling diversifiable full viewing key component of this unified key.

+

pub fn address( &self, j: DiversifierIndex, request: Option<UnifiedAddressRequest>, @@ -28,7 +28,7 @@ If request is None, the address should be derived to contain a receiver for each item in this UFVK.

Returns None if the specified index does not produce a valid diversifier.

-

Source

pub fn find_address( +

pub fn find_address( &self, j: DiversifierIndex, request: Option<UnifiedAddressRequest>, @@ -38,7 +38,7 @@ address should be derived to contain a receiver for each item in this UFVK.

Returns an Err(AddressGenerationError) if no valid diversifier exists or if the features required to satisfy the unified address request are not properly enabled.

-

Source

pub fn default_address( +

pub fn default_address( &self, request: Option<UnifiedAddressRequest>, ) -> Result<(UnifiedAddress, DiversifierIndex), AddressGenerationError>

Find the Unified Address corresponding to the smallest valid diversifier index, along with @@ -46,7 +46,7 @@ each item in this UFVK.

Returns an Err(AddressGenerationError) if no valid diversifier exists or if the features required to satisfy the unified address request are not properly enabled.

-

Trait Implementations§

Source§

impl Clone for UnifiedFullViewingKey

Source§

fn clone(&self) -> UnifiedFullViewingKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnifiedFullViewingKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for UnifiedFullViewingKey

§

fn clone(&self) -> UnifiedFullViewingKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for UnifiedFullViewingKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedIncomingViewingKey.html b/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedIncomingViewingKey.html index a4c1fb58d..af015ef07 100644 --- a/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedIncomingViewingKey.html +++ b/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedIncomingViewingKey.html @@ -1,21 +1,21 @@ -UnifiedIncomingViewingKey in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Struct UnifiedIncomingViewingKey

Source
pub struct UnifiedIncomingViewingKey { /* private fields */ }
Expand description

A ZIP 316 unified incoming viewing key.

-

Implementations§

Source§

impl UnifiedIncomingViewingKey

Source

pub fn new( +UnifiedIncomingViewingKey in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Struct UnifiedIncomingViewingKey

pub struct UnifiedIncomingViewingKey { /* private fields */ }
Expand description

A ZIP 316 unified incoming viewing key.

+

Implementations§

§

impl UnifiedIncomingViewingKey

pub fn new( transparent: Option<ExternalIvk>, sapling: Option<IncomingViewingKey>, ) -> UnifiedIncomingViewingKey

Available on crate feature test-dependencies only.

Construct a new unified incoming viewing key.

This method is only available when the test-dependencies feature is enabled, as derivation from the UFVK or deserialization from the serialized form should be used instead.

-
Source

pub fn decode<P>( +

pub fn decode<P>( params: &P, encoding: &str, ) -> Result<UnifiedIncomingViewingKey, String>
where P: Parameters,

Parses a UnifiedFullViewingKey from its ZIP 316 string encoding.

-
Source

pub fn encode<P>(&self, params: &P) -> String
where +

pub fn encode<P>(&self, params: &P) -> String
where P: Parameters,

Returns the string encoding of this UnifiedFullViewingKey for the given network.

-
Source

pub fn transparent(&self) -> &Option<ExternalIvk>

Available on crate feature transparent-inputs only.

Returns the Transparent external IVK, if present.

-
Source

pub fn sapling(&self) -> &Option<IncomingViewingKey>

Available on crate feature sapling only.

Returns the Sapling IVK, if present.

-
Source

pub fn address( +

pub fn transparent(&self) -> &Option<ExternalIvk>

Available on crate feature transparent-inputs only.

Returns the Transparent external IVK, if present.

+

pub fn sapling(&self) -> &Option<IncomingViewingKey>

Available on crate feature sapling only.

Returns the Sapling IVK, if present.

+

pub fn address( &self, _j: DiversifierIndex, request: Option<UnifiedAddressRequest>, @@ -23,7 +23,7 @@ If request is None, the address should be derived to contain a receiver for each item in this UFVK.

Returns None if the specified index does not produce a valid diversifier.

-

Source

pub fn find_address( +

pub fn find_address( &self, j: DiversifierIndex, request: Option<UnifiedAddressRequest>, @@ -32,7 +32,7 @@ diversifier along with the index at which the valid diversifier was found.

Returns an Err(AddressGenerationError) if no valid diversifier exists or if the features required to satisfy the unified address request are not properly enabled.

-

Source

pub fn default_address( +

pub fn default_address( &self, request: Option<UnifiedAddressRequest>, ) -> Result<(UnifiedAddress, DiversifierIndex), AddressGenerationError>

Find the Unified Address corresponding to the smallest valid diversifier index, along with @@ -40,8 +40,8 @@ each item in this UFVK.

Returns an Err(AddressGenerationError) if no valid diversifier exists or if the features required to satisfy the unified address request are not properly enabled.

-
Source

pub fn to_address_request(&self) -> Option<UnifiedAddressRequest>

Constructs a UnifiedAddressRequest that includes the components of this UIVK.

-

Trait Implementations§

Source§

impl Clone for UnifiedIncomingViewingKey

Source§

fn clone(&self) -> UnifiedIncomingViewingKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnifiedIncomingViewingKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

pub fn to_address_request(&self) -> Option<UnifiedAddressRequest>

Constructs a UnifiedAddressRequest that includes the components of this UIVK.

+

Trait Implementations§

§

impl Clone for UnifiedIncomingViewingKey

§

fn clone(&self) -> UnifiedIncomingViewingKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for UnifiedIncomingViewingKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedSpendingKey.html b/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedSpendingKey.html index b818c4e47..c9a44d28c 100644 --- a/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedSpendingKey.html +++ b/rustdoc/latest/zcash_client_backend/keys/struct.UnifiedSpendingKey.html @@ -1,13 +1,13 @@ -UnifiedSpendingKey in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Struct UnifiedSpendingKey

Source
pub struct UnifiedSpendingKey { /* private fields */ }
Expand description

A set of spending keys that are all associated with a single ZIP-0032 account identifier.

-

Implementations§

Source§

impl UnifiedSpendingKey

Source

pub fn from_seed<P>( +UnifiedSpendingKey in zcash_client_backend::keys - Rust
zcash_client_backend::keys

Struct UnifiedSpendingKey

pub struct UnifiedSpendingKey { /* private fields */ }
Expand description

A set of spending keys that are all associated with a single ZIP-0032 account identifier.

+

Implementations§

§

impl UnifiedSpendingKey

pub fn from_seed<P>( _params: &P, seed: &[u8], _account: AccountId, ) -> Result<UnifiedSpendingKey, DerivationError>
where - P: Parameters,

Source

pub fn to_unified_full_viewing_key(&self) -> UnifiedFullViewingKey

Source

pub fn transparent(&self) -> &AccountPrivKey

Available on crate feature transparent-inputs only.

Returns the transparent component of the unified key at the + P: Parameters,

pub fn to_unified_full_viewing_key(&self) -> UnifiedFullViewingKey

pub fn transparent(&self) -> &AccountPrivKey

Available on crate feature transparent-inputs only.

Returns the transparent component of the unified key at the BIP44 path m/44'/<coin_type>'/<account>'.

-
Source

pub fn sapling(&self) -> &ExtendedSpendingKey

Available on crate feature sapling only.

Returns the Sapling extended spending key component of this unified spending key.

-
Source

pub fn to_bytes(&self, era: Era) -> Vec<u8>

Available on crate feature unstable only.

Returns a binary encoding of this key suitable for decoding with Self::from_bytes.

+

pub fn sapling(&self) -> &ExtendedSpendingKey

Available on crate feature sapling only.

Returns the Sapling extended spending key component of this unified spending key.

+

pub fn to_bytes(&self, era: Era) -> Vec<u8>

Available on crate feature unstable only.

Returns a binary encoding of this key suitable for decoding with Self::from_bytes.

The encoded form of a unified spending key is only intended for use within wallets when required for storage and/or crossing FFI boundaries; unified spending keys should not be exposed to users, and consequently @@ -15,17 +15,17 @@ internal validation metadata (such as checksums) as keys decoded from this form will necessarily be validated when the attempt is made to spend a note that they have authority for.

-
Source

pub fn from_bytes( +

pub fn from_bytes( era: Era, encoded: &[u8], ) -> Result<UnifiedSpendingKey, DecodingError>

Available on crate feature unstable only.

Decodes a UnifiedSpendingKey value from its serialized representation.

See Self::to_bytes for additional detail about the encoded form.

-
Source

pub fn default_address( +

pub fn default_address( &self, request: Option<UnifiedAddressRequest>, -) -> (UnifiedAddress, DiversifierIndex)

Available on crate feature test-dependencies only.
Source

pub fn default_transparent_address( +) -> (UnifiedAddress, DiversifierIndex)

Available on crate feature test-dependencies only.

pub fn default_transparent_address( &self, -) -> (TransparentAddress, NonHardenedChildIndex)

Available on crate features transparent-inputs and test-dependencies only.

Trait Implementations§

Source§

impl Clone for UnifiedSpendingKey

Source§

fn clone(&self) -> UnifiedSpendingKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnifiedSpendingKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> (TransparentAddress, NonHardenedChildIndex)

Available on crate features transparent-inputs and test-dependencies only.

Trait Implementations§

§

impl Clone for UnifiedSpendingKey

§

fn clone(&self) -> UnifiedSpendingKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for UnifiedSpendingKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where diff --git a/rustdoc/latest/zcash_client_backend/keys/testing/fn.arb_unified_spending_key.html b/rustdoc/latest/zcash_client_backend/keys/testing/fn.arb_unified_spending_key.html index 122fee37b..00c8a5c61 100644 --- a/rustdoc/latest/zcash_client_backend/keys/testing/fn.arb_unified_spending_key.html +++ b/rustdoc/latest/zcash_client_backend/keys/testing/fn.arb_unified_spending_key.html @@ -1,3 +1,3 @@ -arb_unified_spending_key in zcash_client_backend::keys::testing - Rust
zcash_client_backend::keys::testing

Function arb_unified_spending_key

Source
pub fn arb_unified_spending_key(
+arb_unified_spending_key in zcash_client_backend::keys::testing - Rust
zcash_client_backend::keys::testing

Function arb_unified_spending_key

pub fn arb_unified_spending_key(
     params: Network,
 ) -> impl Strategy<Value = UnifiedSpendingKey>
Available on crate feature test-dependencies only.
\ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/keys/testing/index.html b/rustdoc/latest/zcash_client_backend/keys/testing/index.html index 413c8c8e7..f2457f8bd 100644 --- a/rustdoc/latest/zcash_client_backend/keys/testing/index.html +++ b/rustdoc/latest/zcash_client_backend/keys/testing/index.html @@ -1 +1 @@ -zcash_client_backend::keys::testing - Rust
zcash_client_backend::keys

Module testing

Source
Available on crate feature test-dependencies only.

Functions§

\ No newline at end of file +zcash_client_backend::keys::testing - Rust
zcash_client_backend::keys

Module testing

Available on crate feature test-dependencies only.

Functions§

\ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/constant.H0.html b/rustdoc/latest/zcash_primitives/consensus/constant.H0.html index 7bf62ba64..37adde373 100644 --- a/rustdoc/latest/zcash_primitives/consensus/constant.H0.html +++ b/rustdoc/latest/zcash_primitives/consensus/constant.H0.html @@ -1,2 +1,2 @@ -H0 in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant H0

Source
pub const H0: BlockHeight;
Expand description

The height of the genesis block on a network.

+H0 in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant H0

Source
pub const H0: BlockHeight;
Expand description

The height of the genesis block on a network.

\ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/constant.MAIN_NETWORK.html b/rustdoc/latest/zcash_primitives/consensus/constant.MAIN_NETWORK.html index af8ba5dbd..8de0ae526 100644 --- a/rustdoc/latest/zcash_primitives/consensus/constant.MAIN_NETWORK.html +++ b/rustdoc/latest/zcash_primitives/consensus/constant.MAIN_NETWORK.html @@ -1,2 +1,2 @@ -MAIN_NETWORK in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant MAIN_NETWORK

Source
pub const MAIN_NETWORK: MainNetwork;
Expand description

The production network.

+MAIN_NETWORK in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant MAIN_NETWORK

Source
pub const MAIN_NETWORK: MainNetwork;
Expand description

The production network.

\ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/constant.TEST_NETWORK.html b/rustdoc/latest/zcash_primitives/consensus/constant.TEST_NETWORK.html index cabeb7d4e..898786a00 100644 --- a/rustdoc/latest/zcash_primitives/consensus/constant.TEST_NETWORK.html +++ b/rustdoc/latest/zcash_primitives/consensus/constant.TEST_NETWORK.html @@ -1,2 +1,2 @@ -TEST_NETWORK in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant TEST_NETWORK

Source
pub const TEST_NETWORK: TestNetwork;
Expand description

The test network.

+TEST_NETWORK in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant TEST_NETWORK

Source
pub const TEST_NETWORK: TestNetwork;
Expand description

The test network.

\ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/constant.ZIP212_GRACE_PERIOD.html b/rustdoc/latest/zcash_primitives/consensus/constant.ZIP212_GRACE_PERIOD.html index 2b55d1c1a..1e5b49c17 100644 --- a/rustdoc/latest/zcash_primitives/consensus/constant.ZIP212_GRACE_PERIOD.html +++ b/rustdoc/latest/zcash_primitives/consensus/constant.ZIP212_GRACE_PERIOD.html @@ -1,2 +1,2 @@ -ZIP212_GRACE_PERIOD in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant ZIP212_GRACE_PERIOD

Source
pub const ZIP212_GRACE_PERIOD: u32 = 32256; // 32_256u32
Expand description

The “grace period” defined in ZIP 212.

+ZIP212_GRACE_PERIOD in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Constant ZIP212_GRACE_PERIOD

Source
pub const ZIP212_GRACE_PERIOD: u32 = 32256; // 32_256u32
Expand description

The “grace period” defined in ZIP 212.

\ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/enum.BranchId.html b/rustdoc/latest/zcash_primitives/consensus/enum.BranchId.html index 5c6b9bded..14f0fd5f9 100644 --- a/rustdoc/latest/zcash_primitives/consensus/enum.BranchId.html +++ b/rustdoc/latest/zcash_primitives/consensus/enum.BranchId.html @@ -1,4 +1,4 @@ -BranchId in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Enum BranchId

Source
pub enum BranchId {
+BranchId in zcash_primitives::consensus - Rust
zcash_primitives::consensus

Enum BranchId

Source
pub enum BranchId {
     Sprout,
     Overwinter,
     Sapling,
@@ -23,17 +23,17 @@
 
§

Canopy

The consensus rules deployed by NetworkUpgrade::Canopy.

§

Nu5

The consensus rules deployed by NetworkUpgrade::Nu5.

§

Nu6

The consensus rules deployed by NetworkUpgrade::Nu6.

-

Implementations§

Source§

impl BranchId

Source

pub fn for_height<P>(parameters: &P, height: BlockHeight) -> BranchId
where +

Implementations§

Source§

impl BranchId

Source

pub fn for_height<P>(parameters: &P, height: BlockHeight) -> BranchId
where P: Parameters,

Returns the branch ID corresponding to the consensus rule set that is active at the given height.

This is the branch ID that should be used when creating transactions.

-
Source

pub fn height_range<P>( +

Source

pub fn height_range<P>( &self, params: &P, ) -> Option<impl RangeBounds<BlockHeight>>
where P: Parameters,

Returns the range of heights for the consensus epoch associated with this branch id.

The resulting tuple implements the RangeBounds<BlockHeight> trait.

-
Source

pub fn height_bounds<P>( +

Source

pub fn height_bounds<P>( &self, params: &P, ) -> Option<(BlockHeight, Option<BlockHeight>)>
where @@ -46,9 +46,9 @@ in effect for the range x..
  • None means that the consensus rules corresponding to this branch id are never in effect.
  • -

    Source

    pub fn sprout_uses_groth_proofs(&self) -> bool

    Trait Implementations§

    Source§

    impl Clone for BranchId

    Source§

    fn clone(&self) -> BranchId

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BranchId

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BranchId

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl PartialEq for BranchId

    Source§

    fn eq(&self, other: &BranchId) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl TryFrom<u32> for BranchId

    Source§

    type Error = &'static str

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u32) -> Result<BranchId, <BranchId as TryFrom<u32>>::Error>

    Performs the conversion.
    Source§

    impl Copy for BranchId

    Source§

    impl Eq for BranchId

    Source§

    impl StructuralPartialEq for BranchId

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source

    pub fn sprout_uses_groth_proofs(&self) -> bool

    Trait Implementations§

    Source§

    impl Clone for BranchId

    Source§

    fn clone(&self) -> BranchId

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BranchId

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BranchId

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl PartialEq for BranchId

    Source§

    fn eq(&self, other: &BranchId) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl TryFrom<u32> for BranchId

    Source§

    type Error = &'static str

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u32) -> Result<BranchId, <BranchId as TryFrom<u32>>::Error>

    Performs the conversion.
    Source§

    impl Copy for BranchId

    Source§

    impl Eq for BranchId

    Source§

    impl StructuralPartialEq for BranchId

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/enum.Network.html b/rustdoc/latest/zcash_primitives/consensus/enum.Network.html index 50edc4a1f..785b6dcc1 100644 --- a/rustdoc/latest/zcash_primitives/consensus/enum.Network.html +++ b/rustdoc/latest/zcash_primitives/consensus/enum.Network.html @@ -1,17 +1,17 @@ -Network in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Enum Network

    Source
    pub enum Network {
    +Network in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Enum Network

    Source
    pub enum Network {
         MainNetwork,
         TestNetwork,
     }
    Expand description

    The enumeration of known Zcash networks.

    Variants§

    §

    MainNetwork

    Zcash Mainnet.

    §

    TestNetwork

    Zcash Testnet.

    -

    Trait Implementations§

    Source§

    impl Clone for Network

    Source§

    fn clone(&self) -> Network

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Network

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for Network

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Hash for Network

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where +

    Trait Implementations§

    Source§

    impl Clone for Network

    Source§

    fn clone(&self) -> Network

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Network

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for Network

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Hash for Network

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Parameters for Network

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the -provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for Network

    Source§

    fn eq(&self, other: &Network) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for Network

    Source§

    impl Eq for Network

    Source§

    impl StructuralPartialEq for Network

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Parameters for Network

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for Network

    Source§

    fn eq(&self, other: &Network) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for Network

    Source§

    impl Eq for Network

    Source§

    impl StructuralPartialEq for Network

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where @@ -45,16 +45,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more

    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    §

    impl<T> Pipe for T
    where T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/enum.NetworkType.html b/rustdoc/latest/zcash_primitives/consensus/enum.NetworkType.html index 291275fda..48adf98b0 100644 --- a/rustdoc/latest/zcash_primitives/consensus/enum.NetworkType.html +++ b/rustdoc/latest/zcash_primitives/consensus/enum.NetworkType.html @@ -1,4 +1,4 @@ -NetworkType in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Enum NetworkType

    Source
    pub enum NetworkType {
    +NetworkType in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Enum NetworkType

    Source
    pub enum NetworkType {
         Main,
         Test,
         Regtest,
    @@ -8,21 +8,21 @@
     
    §

    Regtest

    Private integration / regression testing, used in zcashd.

    For some address types there is no distinction between test and regtest encodings; those will always be parsed as Network::Test.

    -

    Trait Implementations§

    Source§

    impl Clone for NetworkType

    Source§

    fn clone(&self) -> NetworkType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkType

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Hash for NetworkType

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where +

    Trait Implementations§

    Source§

    impl Clone for NetworkType

    Source§

    fn clone(&self) -> NetworkType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkType

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Hash for NetworkType

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl NetworkConstants for NetworkType

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl NetworkConstants for NetworkType

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the -network to which this NetworkConstants value applies. Read more
    Source§

    impl PartialEq for NetworkType

    Source§

    fn eq(&self, other: &NetworkType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkType

    Source§

    impl Eq for NetworkType

    Source§

    impl StructuralPartialEq for NetworkType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +applies.

    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +network to which this NetworkConstants value applies. Read more
    Source§

    impl PartialEq for NetworkType

    Source§

    fn eq(&self, other: &NetworkType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkType

    Source§

    impl Eq for NetworkType

    Source§

    impl StructuralPartialEq for NetworkType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/enum.NetworkUpgrade.html b/rustdoc/latest/zcash_primitives/consensus/enum.NetworkUpgrade.html index 9f356ca2f..b41b2c98c 100644 --- a/rustdoc/latest/zcash_primitives/consensus/enum.NetworkUpgrade.html +++ b/rustdoc/latest/zcash_primitives/consensus/enum.NetworkUpgrade.html @@ -1,4 +1,4 @@ -NetworkUpgrade in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Enum NetworkUpgrade

    Source
    pub enum NetworkUpgrade {
    +NetworkUpgrade in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Enum NetworkUpgrade

    Source
    pub enum NetworkUpgrade {
         Overwinter,
         Sapling,
         Blossom,
    @@ -16,9 +16,9 @@
     
    §

    Canopy

    The Canopy network upgrade.

    §

    Nu5

    The Nu5 network upgrade.

    §

    Nu6

    The Nu6 network upgrade.

    -

    Trait Implementations§

    Source§

    impl Clone for NetworkUpgrade

    Source§

    fn clone(&self) -> NetworkUpgrade

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkUpgrade

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl PartialEq for NetworkUpgrade

    Source§

    fn eq(&self, other: &NetworkUpgrade) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkUpgrade

    Source§

    impl Eq for NetworkUpgrade

    Source§

    impl StructuralPartialEq for NetworkUpgrade

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Clone for NetworkUpgrade

    Source§

    fn clone(&self) -> NetworkUpgrade

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkUpgrade

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl PartialEq for NetworkUpgrade

    Source§

    fn eq(&self, other: &NetworkUpgrade) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkUpgrade

    Source§

    impl Eq for NetworkUpgrade

    Source§

    impl StructuralPartialEq for NetworkUpgrade

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/index.html b/rustdoc/latest/zcash_primitives/consensus/index.html index 77db53a12..f0a116e97 100644 --- a/rustdoc/latest/zcash_primitives/consensus/index.html +++ b/rustdoc/latest/zcash_primitives/consensus/index.html @@ -1,3 +1,3 @@ -zcash_primitives::consensus - Rust
    zcash_primitives

    Module consensus

    Source
    Expand description

    Consensus logic and parameters.

    +zcash_primitives::consensus - Rust
    zcash_primitives

    Module consensus

    Source
    Expand description

    Consensus logic and parameters.

    Modules§

    Structs§

    Enums§

    • A globally-unique identifier for a set of consensus rules within the Zcash chain.
    • The enumeration of known Zcash networks.
    • The enumeration of known Zcash network types.
    • An event that occurs at a specified height on the Zcash chain, at which point the consensus rules enforced by the network are altered.

    Constants§

    Traits§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/struct.BlockHeight.html b/rustdoc/latest/zcash_primitives/consensus/struct.BlockHeight.html index a234eef50..381c563db 100644 --- a/rustdoc/latest/zcash_primitives/consensus/struct.BlockHeight.html +++ b/rustdoc/latest/zcash_primitives/consensus/struct.BlockHeight.html @@ -1,26 +1,26 @@ -BlockHeight in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Struct BlockHeight

    Source
    pub struct BlockHeight(/* private fields */);
    Expand description

    A wrapper type representing blockchain heights.

    +BlockHeight in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Struct BlockHeight

    Source
    pub struct BlockHeight(/* private fields */);
    Expand description

    A wrapper type representing blockchain heights.

    Safe conversion from various integer types, as well as addition and subtraction, are provided.

    -

    Implementations§

    Source§

    impl BlockHeight

    Source

    pub const fn from_u32(v: u32) -> BlockHeight

    Source

    pub fn saturating_sub(self, v: u32) -> BlockHeight

    Subtracts the provided value from this height, returning H0 if this would result in +

    Implementations§

    Source§

    impl BlockHeight

    Source

    pub const fn from_u32(v: u32) -> BlockHeight

    Source

    pub fn saturating_sub(self, v: u32) -> BlockHeight

    Subtracts the provided value from this height, returning H0 if this would result in underflow of the wrapped u32.

    -

    Trait Implementations§

    Source§

    impl Add<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the + operator.
    Source§

    fn add(self, other: u32) -> BlockHeight

    Performs the + operation. Read more
    Source§

    impl Clone for BlockHeight

    Source§

    fn clone(&self) -> BlockHeight

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BlockHeight

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BlockHeight

    Source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BlockHeight

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl From<u32> for BlockHeight

    Source§

    fn from(value: u32) -> BlockHeight

    Converts to this type from the input type.
    Source§

    impl Hash for BlockHeight

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where +

    Trait Implementations§

    Source§

    impl Add<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the + operator.
    Source§

    fn add(self, other: u32) -> BlockHeight

    Performs the + operation. Read more
    Source§

    impl Clone for BlockHeight

    Source§

    fn clone(&self) -> BlockHeight

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BlockHeight

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BlockHeight

    Source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BlockHeight

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl From<u32> for BlockHeight

    Source§

    fn from(value: u32) -> BlockHeight

    Converts to this type from the input type.
    Source§

    impl Hash for BlockHeight

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for BlockHeight

    Source§

    fn cmp(&self, other: &BlockHeight) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for BlockHeight

    Source§

    fn cmp(&self, other: &BlockHeight) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for BlockHeight

    Source§

    fn eq(&self, other: &BlockHeight) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for BlockHeight

    Source§

    fn partial_cmp(&self, other: &BlockHeight) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for BlockHeight

    Source§

    fn eq(&self, other: &BlockHeight) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for BlockHeight

    Source§

    fn partial_cmp(&self, other: &BlockHeight) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: u32) -> BlockHeight

    Performs the - operation. Read more
    Source§

    impl Sub for BlockHeight

    Source§

    type Output = u32

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: BlockHeight) -> u32

    Performs the - operation. Read more
    Source§

    impl TestCheckpoint for BlockHeight

    Available on crate feature test-dependencies only.
    Source§

    impl TryFrom<i32> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +the >= operator. Read more

    Source§

    impl Sub<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: u32) -> BlockHeight

    Performs the - operation. Read more
    Source§

    impl Sub for BlockHeight

    Source§

    type Output = u32

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: BlockHeight) -> u32

    Performs the - operation. Read more
    Source§

    impl TestCheckpoint for BlockHeight

    Available on crate feature test-dependencies only.
    Source§

    impl TryFrom<i32> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( value: i32, -) -> Result<BlockHeight, <BlockHeight as TryFrom<i32>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +) -> Result<BlockHeight, <BlockHeight as TryFrom<i32>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( value: i64, -) -> Result<BlockHeight, <BlockHeight as TryFrom<i64>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +) -> Result<BlockHeight, <BlockHeight as TryFrom<i64>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( value: u64, -) -> Result<BlockHeight, <BlockHeight as TryFrom<u64>>::Error>

    Performs the conversion.
    Source§

    impl Copy for BlockHeight

    Source§

    impl Eq for BlockHeight

    Source§

    impl StructuralPartialEq for BlockHeight

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T

    Performs the conversion.

    Source§

    impl Copy for BlockHeight

    Source§

    impl Eq for BlockHeight

    Source§

    impl StructuralPartialEq for BlockHeight

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/struct.MainNetwork.html b/rustdoc/latest/zcash_primitives/consensus/struct.MainNetwork.html index 8ab319515..de8a52e5c 100644 --- a/rustdoc/latest/zcash_primitives/consensus/struct.MainNetwork.html +++ b/rustdoc/latest/zcash_primitives/consensus/struct.MainNetwork.html @@ -1,9 +1,9 @@ -MainNetwork in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Struct MainNetwork

    Source
    pub struct MainNetwork;
    Expand description

    Marker struct for the production network.

    -

    Trait Implementations§

    Source§

    impl Clone for MainNetwork

    Source§

    fn clone(&self) -> MainNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for MainNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Parameters for MainNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the -provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for MainNetwork

    Source§

    fn eq(&self, other: &MainNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for MainNetwork

    Source§

    impl Eq for MainNetwork

    Source§

    impl StructuralPartialEq for MainNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +MainNetwork in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Struct MainNetwork

    Source
    pub struct MainNetwork;
    Expand description

    Marker struct for the production network.

    +

    Trait Implementations§

    Source§

    impl Clone for MainNetwork

    Source§

    fn clone(&self) -> MainNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for MainNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Parameters for MainNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for MainNetwork

    Source§

    fn eq(&self, other: &MainNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for MainNetwork

    Source§

    impl Eq for MainNetwork

    Source§

    impl StructuralPartialEq for MainNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where @@ -37,16 +37,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more

    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    §

    impl<T> Pipe for T
    where T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/struct.TestNetwork.html b/rustdoc/latest/zcash_primitives/consensus/struct.TestNetwork.html index a04fc28aa..8bbbe4deb 100644 --- a/rustdoc/latest/zcash_primitives/consensus/struct.TestNetwork.html +++ b/rustdoc/latest/zcash_primitives/consensus/struct.TestNetwork.html @@ -1,9 +1,9 @@ -TestNetwork in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Struct TestNetwork

    Source
    pub struct TestNetwork;
    Expand description

    Marker struct for the test network.

    -

    Trait Implementations§

    Source§

    impl Clone for TestNetwork

    Source§

    fn clone(&self) -> TestNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TestNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for TestNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Parameters for TestNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the -provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for TestNetwork

    Source§

    fn eq(&self, other: &TestNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for TestNetwork

    Source§

    impl Eq for TestNetwork

    Source§

    impl StructuralPartialEq for TestNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +TestNetwork in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Struct TestNetwork

    Source
    pub struct TestNetwork;
    Expand description

    Marker struct for the test network.

    +

    Trait Implementations§

    Source§

    impl Clone for TestNetwork

    Source§

    fn clone(&self) -> TestNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TestNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for TestNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Parameters for TestNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for TestNetwork

    Source§

    fn eq(&self, other: &TestNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for TestNetwork

    Source§

    impl Eq for TestNetwork

    Source§

    impl StructuralPartialEq for TestNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where @@ -37,16 +37,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more

    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    §

    impl<T> Pipe for T
    where T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_branch_id.html b/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_branch_id.html index bb6340a18..6b8475c4b 100644 --- a/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_branch_id.html +++ b/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_branch_id.html @@ -1 +1 @@ -arb_branch_id in zcash_primitives::consensus::testing - Rust
    zcash_primitives::consensus::testing

    Function arb_branch_id

    Source
    pub fn arb_branch_id() -> impl Strategy<Value = BranchId>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_branch_id in zcash_primitives::consensus::testing - Rust
    zcash_primitives::consensus::testing

    Function arb_branch_id

    Source
    pub fn arb_branch_id() -> impl Strategy<Value = BranchId>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_height.html b/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_height.html index ef34a354d..4a9d64c0b 100644 --- a/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_height.html +++ b/rustdoc/latest/zcash_primitives/consensus/testing/fn.arb_height.html @@ -1,4 +1,4 @@ -arb_height in zcash_primitives::consensus::testing - Rust
    zcash_primitives::consensus::testing

    Function arb_height

    Source
    pub fn arb_height<P>(
    +arb_height in zcash_primitives::consensus::testing - Rust
    zcash_primitives::consensus::testing

    Function arb_height

    Source
    pub fn arb_height<P>(
         branch_id: BranchId,
         params: &P,
     ) -> impl Strategy<Value = Option<BlockHeight>>
    where diff --git a/rustdoc/latest/zcash_primitives/consensus/testing/index.html b/rustdoc/latest/zcash_primitives/consensus/testing/index.html index 2060ea348..b9d8c2c58 100644 --- a/rustdoc/latest/zcash_primitives/consensus/testing/index.html +++ b/rustdoc/latest/zcash_primitives/consensus/testing/index.html @@ -1 +1 @@ -zcash_primitives::consensus::testing - Rust
    zcash_primitives::consensus

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file +zcash_primitives::consensus::testing - Rust
    zcash_primitives::consensus

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/trait.NetworkConstants.html b/rustdoc/latest/zcash_primitives/consensus/trait.NetworkConstants.html index 2d6779c67..5b10ee193 100644 --- a/rustdoc/latest/zcash_primitives/consensus/trait.NetworkConstants.html +++ b/rustdoc/latest/zcash_primitives/consensus/trait.NetworkConstants.html @@ -1,4 +1,4 @@ -NetworkConstants in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Trait NetworkConstants

    Source
    pub trait NetworkConstants: Clone {
    +NetworkConstants in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Trait NetworkConstants

    Source
    pub trait NetworkConstants: Clone {
         // Required methods
         fn coin_type(&self) -> u32;
         fn hrp_sapling_extended_spending_key(&self) -> &'static str;
    @@ -9,27 +9,27 @@
         fn b58_script_address_prefix(&self) -> [u8; 2];
         fn hrp_tex_address(&self) -> &'static str;
     }
    Expand description

    Constants associated with a given Zcash network.

    -

    Required Methods§

    Source

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.

    -
    Source

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +

    Required Methods§

    Source

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.

    +
    Source

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys for the network to which this NetworkConstants value applies.

    Defined in ZIP 32.

    -
    Source

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +

    Source

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full viewing keys for the network to which this NetworkConstants value applies.

    Defined in ZIP 32.

    -
    Source

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +

    Source

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses for the network to which this NetworkConstants value applies.

    Defined in section 5.6.4 of the Zcash Protocol Specification.

    -
    Source

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +

    Source

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value applies.

    Defined in the Zcash Protocol Specification section 5.6.3.

    -
    Source

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +

    Source

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value applies.

    -
    Source

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +

    Source

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash payment addresses for the network to which this NetworkConstants value applies.

    -
    Source

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +

    Source

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies.

    Defined in ZIP 320.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/consensus/trait.Parameters.html b/rustdoc/latest/zcash_primitives/consensus/trait.Parameters.html index 570b0a870..01aa2d070 100644 --- a/rustdoc/latest/zcash_primitives/consensus/trait.Parameters.html +++ b/rustdoc/latest/zcash_primitives/consensus/trait.Parameters.html @@ -1,4 +1,4 @@ -Parameters in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Trait Parameters

    Source
    pub trait Parameters: Clone {
    +Parameters in zcash_primitives::consensus - Rust
    zcash_primitives::consensus

    Trait Parameters

    Source
    pub trait Parameters: Clone {
         // Required methods
         fn network_type(&self) -> NetworkType;
         fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>;
    @@ -6,10 +6,10 @@
         // Provided method
         fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool { ... }
     }
    Expand description

    Zcash consensus parameters.

    -

    Required Methods§

    Source

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.

    -
    Source

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +

    Required Methods§

    Source

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.

    +
    Source

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, if an activation height has been set.

    -

    Provided Methods§

    Source

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +

    Provided Methods§

    Source

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the provided block height on the network to which this Parameters value applies.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    Source§

    impl Parameters for Network

    Source§

    impl Parameters for LocalNetwork

    Parameters implementation for LocalNetwork

    -
    Source§

    impl Parameters for MainNetwork

    Source§

    impl Parameters for TestNetwork

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    Source§

    impl Parameters for Network

    Source§

    impl Parameters for LocalNetwork

    Parameters implementation for LocalNetwork

    +
    Source§

    impl Parameters for MainNetwork

    Source§

    impl Parameters for TestNetwork

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/constants/index.html b/rustdoc/latest/zcash_primitives/constants/index.html index 8e81a660b..2bb2b2813 100644 --- a/rustdoc/latest/zcash_primitives/constants/index.html +++ b/rustdoc/latest/zcash_primitives/constants/index.html @@ -1,2 +1,2 @@ -zcash_primitives::constants - Rust
    zcash_primitives

    Module constants

    Source
    Expand description

    Network-specific Zcash constants.

    +zcash_primitives::constants - Rust
    zcash_primitives

    Module constants

    Source
    Expand description

    Network-specific Zcash constants.

    Modules§

    • Constants for the Zcash main network.
    • Regtest constants
    • Constants for the Zcash test network.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/memo/enum.Error.html b/rustdoc/latest/zcash_primitives/memo/enum.Error.html index d5a861e67..f0d326280 100644 --- a/rustdoc/latest/zcash_primitives/memo/enum.Error.html +++ b/rustdoc/latest/zcash_primitives/memo/enum.Error.html @@ -1,9 +1,9 @@ -Error in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Enum Error

    Source
    pub enum Error {
    +Error in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Enum Error

    Source
    pub enum Error {
         InvalidUtf8(Utf8Error),
         TooLong(usize),
     }
    Expand description

    Errors that may result from attempting to construct an invalid memo.

    -

    Variants§

    §

    InvalidUtf8(Utf8Error)

    §

    TooLong(usize)

    Trait Implementations§

    Source§

    impl Clone for Error

    Source§

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl PartialEq for Error

    Source§

    fn eq(&self, other: &Error) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for Error

    Source§

    impl StructuralPartialEq for Error

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Variants§

    §

    InvalidUtf8(Utf8Error)

    §

    TooLong(usize)

    Trait Implementations§

    Source§

    impl Clone for Error

    Source§

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    Available on crate feature std only.
    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl PartialEq for Error

    Source§

    fn eq(&self, other: &Error) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for Error

    Source§

    impl StructuralPartialEq for Error

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/memo/enum.Memo.html b/rustdoc/latest/zcash_primitives/memo/enum.Memo.html index 504228e76..1ca506f65 100644 --- a/rustdoc/latest/zcash_primitives/memo/enum.Memo.html +++ b/rustdoc/latest/zcash_primitives/memo/enum.Memo.html @@ -1,4 +1,4 @@ -Memo in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Enum Memo

    Source
    pub enum Memo {
    +Memo in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Enum Memo

    Source
    pub enum Memo {
         Empty,
         Text(TextMemo),
         Future(MemoBytes),
    @@ -8,25 +8,25 @@
     
    §

    Text(TextMemo)

    A memo field containing a UTF-8 string.

    §

    Future(MemoBytes)

    Some unknown memo format from ✨the future✨ that we can’t parse.

    §

    Arbitrary(Box<[u8; 511]>)

    A memo field containing arbitrary bytes.

    -

    Implementations§

    Source§

    impl Memo

    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<Memo, Error>

    Parses a Memo from its ZIP 302 serialization.

    +

    Implementations§

    Source§

    impl Memo

    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<Memo, Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source

    pub fn encode(&self) -> MemoBytes

    Serializes the Memo per ZIP 302.

    -

    Trait Implementations§

    Source§

    impl Clone for Memo

    Source§

    fn clone(&self) -> Memo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Memo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Memo

    Source§

    fn default() -> Memo

    Returns the “default value” for a type. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl FromStr for Memo

    Source§

    fn from_str(memo: &str) -> Result<Memo, <Memo as FromStr>::Err>

    Returns a Memo containing the given string, or an error if the string is too long.

    -
    Source§

    type Err = Error

    The associated error which can be returned from parsing.
    Source§

    impl PartialEq for Memo

    Source§

    fn eq(&self, rhs: &Memo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source

    pub fn encode(&self) -> MemoBytes

    Serializes the Memo per ZIP 302.

    +

    Trait Implementations§

    Source§

    impl Clone for Memo

    Source§

    fn clone(&self) -> Memo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Memo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Memo

    Source§

    fn default() -> Memo

    Returns the “default value” for a type. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl FromStr for Memo

    Source§

    fn from_str(memo: &str) -> Result<Memo, <Memo as FromStr>::Err>

    Returns a Memo containing the given string, or an error if the string is too long.

    +
    Source§

    type Err = Error

    The associated error which can be returned from parsing.
    Source§

    impl PartialEq for Memo

    Source§

    fn eq(&self, rhs: &Memo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from( bytes: &MemoBytes, ) -> Result<Memo, <Memo as TryFrom<&MemoBytes>>::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    fn try_from( bytes: MemoBytes, ) -> Result<Memo, <Memo as TryFrom<MemoBytes>>::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Auto Trait Implementations§

    §

    impl Freeze for Memo

    §

    impl RefUnwindSafe for Memo

    §

    impl Send for Memo

    §

    impl Sync for Memo

    §

    impl Unpin for Memo

    §

    impl UnwindSafe for Memo

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Auto Trait Implementations§

    §

    impl Freeze for Memo

    §

    impl RefUnwindSafe for Memo

    §

    impl Send for Memo

    §

    impl Sync for Memo

    §

    impl Unpin for Memo

    §

    impl UnwindSafe for Memo

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/memo/index.html b/rustdoc/latest/zcash_primitives/memo/index.html index 4f14a57fd..9bd20192c 100644 --- a/rustdoc/latest/zcash_primitives/memo/index.html +++ b/rustdoc/latest/zcash_primitives/memo/index.html @@ -1,2 +1,2 @@ -zcash_primitives::memo - Rust
    zcash_primitives

    Module memo

    Source
    Expand description

    Structs for handling encrypted memos.

    +zcash_primitives::memo - Rust
    zcash_primitives

    Module memo

    Source
    Expand description

    Structs for handling encrypted memos.

    Structs§

    • The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.
    • Type-safe wrapper around String to enforce memo length requirements.

    Enums§

    • Errors that may result from attempting to construct an invalid memo.
    • An unencrypted memo received alongside a shielded note in a Zcash transaction.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/memo/struct.MemoBytes.html b/rustdoc/latest/zcash_primitives/memo/struct.MemoBytes.html index 1a8911a46..7b4c38817 100644 --- a/rustdoc/latest/zcash_primitives/memo/struct.MemoBytes.html +++ b/rustdoc/latest/zcash_primitives/memo/struct.MemoBytes.html @@ -1,34 +1,34 @@ -MemoBytes in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Struct MemoBytes

    Source
    pub struct MemoBytes(/* private fields */);
    Expand description

    The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.

    -

    Implementations§

    Source§

    impl MemoBytes

    Source

    pub fn empty() -> MemoBytes

    Creates a MemoBytes indicating that no memo is present.

    -
    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<MemoBytes, Error>

    Creates a MemoBytes from a slice, exactly as provided.

    +MemoBytes in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Struct MemoBytes

    Source
    pub struct MemoBytes(/* private fields */);
    Expand description

    The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.

    +

    Implementations§

    Source§

    impl MemoBytes

    Source

    pub fn empty() -> MemoBytes

    Creates a MemoBytes indicating that no memo is present.

    +
    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<MemoBytes, Error>

    Creates a MemoBytes from a slice, exactly as provided.

    Returns an error if the provided slice is longer than 512 bytes. Slices shorter than 512 bytes are padded with null bytes.

    Note that passing an empty slice to this API (or an all-zeroes slice) will result in a memo representing an empty string. What you almost certainly want in this case is MemoBytes::empty, which uses a specific encoding to indicate that no memo is present.

    -
    Source

    pub fn as_array(&self) -> &[u8; 512]

    Returns the raw byte array containing the memo bytes, including null padding.

    -
    Source

    pub fn as_slice(&self) -> &[u8]

    Returns a slice of the raw bytes, excluding null padding.

    -

    Trait Implementations§

    Source§

    impl Clone for MemoBytes

    Source§

    fn clone(&self) -> MemoBytes

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MemoBytes

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl Ord for MemoBytes

    Source§

    fn cmp(&self, rhs: &MemoBytes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Source

    pub fn as_array(&self) -> &[u8; 512]

    Returns the raw byte array containing the memo bytes, including null padding.

    +
    Source

    pub fn as_slice(&self) -> &[u8]

    Returns a slice of the raw bytes, excluding null padding.

    +

    Trait Implementations§

    Source§

    impl Clone for MemoBytes

    Source§

    fn clone(&self) -> MemoBytes

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MemoBytes

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> MemoBytes

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl Ord for MemoBytes

    Source§

    fn cmp(&self, rhs: &MemoBytes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MemoBytes

    Source§

    fn eq(&self, rhs: &MemoBytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MemoBytes

    Source§

    fn partial_cmp(&self, other: &MemoBytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for MemoBytes

    Source§

    fn eq(&self, rhs: &MemoBytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MemoBytes

    Source§

    fn partial_cmp(&self, other: &MemoBytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from( +the >= operator. Read more

    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from( bytes: &MemoBytes, ) -> Result<Memo, <Memo as TryFrom<&MemoBytes>>::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    fn try_from( bytes: MemoBytes, ) -> Result<Memo, <Memo as TryFrom<MemoBytes>>::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl Eq for MemoBytes

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Source§

    impl Eq for MemoBytes

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/memo/struct.TextMemo.html b/rustdoc/latest/zcash_primitives/memo/struct.TextMemo.html index 156ccf72b..9ccfae086 100644 --- a/rustdoc/latest/zcash_primitives/memo/struct.TextMemo.html +++ b/rustdoc/latest/zcash_primitives/memo/struct.TextMemo.html @@ -1,4 +1,4 @@ -TextMemo in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Struct TextMemo

    Source
    pub struct TextMemo(/* private fields */);
    Expand description

    Type-safe wrapper around String to enforce memo length requirements.

    +TextMemo in zcash_primitives::memo - Rust
    zcash_primitives::memo

    Struct TextMemo

    Source
    pub struct TextMemo(/* private fields */);
    Expand description

    Type-safe wrapper around String to enforce memo length requirements.

    Methods from Deref<Target = str>§

    1.0.0 · Source

    pub fn len(&self) -> usize

    Returns the length of self.

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    @@ -1243,8 +1243,8 @@
    §Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    Source§

    impl Clone for TextMemo

    Source§

    fn clone(&self) -> TextMemo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Deref for TextMemo

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &str

    Dereferences the value.
    Source§

    impl PartialEq for TextMemo

    Source§

    fn eq(&self, other: &TextMemo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for TextMemo

    Source§

    impl StructuralPartialEq for TextMemo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Clone for TextMemo

    Source§

    fn clone(&self) -> TextMemo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Deref for TextMemo

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &str

    Dereferences the value.
    Source§

    impl PartialEq for TextMemo

    Source§

    fn eq(&self, other: &TextMemo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for TextMemo

    Source§

    impl StructuralPartialEq for TextMemo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/constant.COIN.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/constant.COIN.html index e331618ca..da5b003f3 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/constant.COIN.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/constant.COIN.html @@ -1 +1 @@ -COIN in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Constant COIN

    Source
    pub const COIN: u64 = 1_0000_0000; // 100_000_000u64
    \ No newline at end of file +COIN in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Constant COIN

    Source
    pub const COIN: u64 = 1_0000_0000; // 100_000_000u64
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/enum.BalanceError.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/enum.BalanceError.html index e0f47551e..fc45612b6 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/enum.BalanceError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/enum.BalanceError.html @@ -1,10 +1,10 @@ -BalanceError in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Enum BalanceError

    Source
    pub enum BalanceError {
    +BalanceError in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Enum BalanceError

    Source
    pub enum BalanceError {
         Overflow,
         Underflow,
     }
    Expand description

    A type for balance violations in amount addition and subtraction (overflow and underflow of allowed ranges)

    -

    Variants§

    §

    Overflow

    §

    Underflow

    Trait Implementations§

    Source§

    impl Clone for BalanceError

    Source§

    fn clone(&self) -> BalanceError

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Error for BalanceError

    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl<FE> From<BalanceError> for Error<FE>

    Source§

    fn from(e: BalanceError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<BalanceError> for FeeError

    Source§

    fn from(err: BalanceError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Infallible> for BalanceError

    Source§

    fn from(_value: Infallible) -> BalanceError

    Converts to this type from the input type.
    Source§

    impl PartialEq for BalanceError

    Source§

    fn eq(&self, other: &BalanceError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for BalanceError

    Source§

    impl Eq for BalanceError

    Source§

    impl StructuralPartialEq for BalanceError

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Variants§

    §

    Overflow

    §

    Underflow

    Trait Implementations§

    Source§

    impl Clone for BalanceError

    Source§

    fn clone(&self) -> BalanceError

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Error for BalanceError

    Available on crate feature std only.
    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl<FE> From<BalanceError> for Error<FE>

    Source§

    fn from(e: BalanceError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<BalanceError> for FeeError

    Source§

    fn from(err: BalanceError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Infallible> for BalanceError

    Source§

    fn from(_value: Infallible) -> BalanceError

    Converts to this type from the input type.
    Source§

    impl PartialEq for BalanceError

    Source§

    fn eq(&self, other: &BalanceError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for BalanceError

    Source§

    impl Eq for BalanceError

    Source§

    impl StructuralPartialEq for BalanceError

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.Amount.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.Amount.html index 582ff3766..39a290f64 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.Amount.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.Amount.html @@ -1,44 +1,44 @@ -Amount in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Struct Amount

    Source
    pub struct Amount(/* private fields */);
    Expand description

    A type-safe representation of a Zcash value delta, in zatoshis.

    +Amount in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Struct Amount

    Source
    pub struct Amount(/* private fields */);
    Expand description

    A type-safe representation of a Zcash value delta, in zatoshis.

    An ZatBalance can only be constructed from an integer that is within the valid monetary range of {-MAX_MONEY..MAX_MONEY} (where MAX_MONEY = 21,000,000 × 10⁸ zatoshis), and this is preserved as an invariant internally. (A Transaction containing serialized invalid ZatBalances would also be rejected by the network consensus rules.)

    -

    Implementations§

    Source§

    impl ZatBalance

    Source

    pub const fn zero() -> ZatBalance

    Returns a zero-valued ZatBalance.

    -
    Source

    pub const fn const_from_i64(amount: i64) -> ZatBalance

    Creates a constant ZatBalance from an i64.

    +

    Implementations§

    Source§

    impl ZatBalance

    Source

    pub const fn zero() -> ZatBalance

    Returns a zero-valued ZatBalance.

    +
    Source

    pub const fn const_from_i64(amount: i64) -> ZatBalance

    Creates a constant ZatBalance from an i64.

    Panics: if the amount is outside the range {-MAX_BALANCE..MAX_BALANCE}.

    -
    Source

    pub const fn const_from_u64(amount: u64) -> ZatBalance

    Creates a constant ZatBalance from a u64.

    +
    Source

    pub const fn const_from_u64(amount: u64) -> ZatBalance

    Creates a constant ZatBalance from a u64.

    Panics: if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn from_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from an i64.

    +
    Source

    pub fn from_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from an i64.

    Returns an error if the amount is outside the range {-MAX_BALANCE..MAX_BALANCE}.

    -
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates a non-negative ZatBalance from an i64.

    +
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates a non-negative ZatBalance from an i64.

    Returns an error if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn from_u64(amount: u64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from a u64.

    +
    Source

    pub fn from_u64(amount: u64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from a u64.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_i64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from a signed 64-bit little-endian integer.

    +
    Source

    pub fn from_i64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from a signed 64-bit little-endian integer.

    Returns an error if the amount is outside the range {-MAX_BALANCE..MAX_BALANCE}.

    -
    Source

    pub fn from_nonnegative_i64_le_bytes( +

    Source

    pub fn from_nonnegative_i64_le_bytes( bytes: [u8; 8], ) -> Result<ZatBalance, BalanceError>

    Reads a non-negative ZatBalance from a signed 64-bit little-endian integer.

    Returns an error if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from an unsigned 64-bit little-endian integer.

    +
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from an unsigned 64-bit little-endian integer.

    Returns an error if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns the ZatBalance encoded as a signed 64-bit little-endian integer.

    -
    Source

    pub const fn is_positive(self) -> bool

    Returns true if self is positive and false if the ZatBalance is zero or +

    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns the ZatBalance encoded as a signed 64-bit little-endian integer.

    +
    Source

    pub const fn is_positive(self) -> bool

    Returns true if self is positive and false if the ZatBalance is zero or negative.

    -
    Source

    pub const fn is_negative(self) -> bool

    Returns true if self is negative and false if the ZatBalance is zero or +

    Source

    pub const fn is_negative(self) -> bool

    Returns true if self is negative and false if the ZatBalance is zero or positive.

    -
    Source

    pub fn sum<I>(values: I) -> Option<ZatBalance>
    where - I: IntoIterator<Item = ZatBalance>,

    Trait Implementations§

    Source§

    impl Add for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the + operation. Read more
    Source§

    impl Clone for ZatBalance

    Source§

    fn clone(&self) -> ZatBalance

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ZatBalance

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for ZatBalance

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl Mul<usize> for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<ZatBalance>

    Performs the * operation. Read more
    Source§

    impl Neg for ZatBalance

    Source§

    type Output = ZatBalance

    The resulting type after applying the - operator.
    Source§

    fn neg(self) -> ZatBalance

    Performs the unary - operation. Read more
    Source§

    impl Ord for ZatBalance

    Source§

    fn cmp(&self, other: &ZatBalance) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Source

    pub fn sum<I>(values: I) -> Option<ZatBalance>
    where + I: IntoIterator<Item = ZatBalance>,

    Trait Implementations§

    Source§

    impl Add for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the + operation. Read more
    Source§

    impl Clone for ZatBalance

    Source§

    fn clone(&self) -> ZatBalance

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ZatBalance

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for ZatBalance

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl Mul<usize> for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<ZatBalance>

    Performs the * operation. Read more
    Source§

    impl Neg for ZatBalance

    Source§

    type Output = ZatBalance

    The resulting type after applying the - operator.
    Source§

    fn neg(self) -> ZatBalance

    Performs the unary - operation. Read more
    Source§

    impl Ord for ZatBalance

    Source§

    fn cmp(&self, other: &ZatBalance) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ZatBalance

    Source§

    fn eq(&self, other: &ZatBalance) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ZatBalance

    Source§

    fn partial_cmp(&self, other: &ZatBalance) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for ZatBalance

    Source§

    fn eq(&self, other: &ZatBalance) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ZatBalance

    Source§

    fn partial_cmp(&self, other: &ZatBalance) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +the >= operator. Read more

    Source§

    impl Sub for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( value: ZatBalance, -) -> Result<Zatoshis, <Zatoshis as TryFrom<ZatBalance>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for ZatBalance

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<ZatBalance, BalanceError>

    Performs the conversion.
    Source§

    impl Copy for ZatBalance

    Source§

    impl Eq for ZatBalance

    Source§

    impl StructuralPartialEq for ZatBalance

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T

    Performs the conversion.
    Source§

    impl TryFrom<i64> for ZatBalance

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<ZatBalance, BalanceError>

    Performs the conversion.
    Source§

    impl Copy for ZatBalance

    Source§

    impl Eq for ZatBalance

    Source§

    impl StructuralPartialEq for ZatBalance

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.NonNegativeAmount.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.NonNegativeAmount.html index 22192d0c6..c9b97cecc 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.NonNegativeAmount.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/struct.NonNegativeAmount.html @@ -1,36 +1,36 @@ -NonNegativeAmount in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Struct NonNegativeAmount

    Source
    pub struct NonNegativeAmount(/* private fields */);
    Expand description

    A type-safe representation of some nonnegative amount of Zcash.

    +NonNegativeAmount in zcash_primitives::transaction::components::amount - Rust
    zcash_primitives::transaction::components::amount

    Struct NonNegativeAmount

    Source
    pub struct NonNegativeAmount(/* private fields */);
    Expand description

    A type-safe representation of some nonnegative amount of Zcash.

    A Zatoshis can only be constructed from an integer that is within the valid monetary range of {0..MAX_MONEY} (where MAX_MONEY = 21,000,000 × 10⁸ zatoshis).

    -

    Implementations§

    Source§

    impl Zatoshis

    Source

    pub const ZERO: Zatoshis = _

    Returns the identity Zatoshis

    -
    Source

    pub fn into_u64(self) -> u64

    Returns this Zatoshis as a u64.

    -
    Source

    pub fn from_u64(amount: u64) -> Result<Zatoshis, BalanceError>

    Creates a Zatoshis from a u64.

    +

    Implementations§

    Source§

    impl Zatoshis

    Source

    pub const ZERO: Zatoshis = _

    Returns the identity Zatoshis

    +
    Source

    pub fn into_u64(self) -> u64

    Returns this Zatoshis as a u64.

    +
    Source

    pub fn from_u64(amount: u64) -> Result<Zatoshis, BalanceError>

    Creates a Zatoshis from a u64.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub const fn const_from_u64(amount: u64) -> Zatoshis

    Creates a constant Zatoshis from a u64.

    +
    Source

    pub const fn const_from_u64(amount: u64) -> Zatoshis

    Creates a constant Zatoshis from a u64.

    Panics: if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<Zatoshis, BalanceError>

    Creates a Zatoshis from an i64.

    +
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<Zatoshis, BalanceError>

    Creates a Zatoshis from an i64.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<Zatoshis, BalanceError>

    Reads an Zatoshis from an unsigned 64-bit little-endian integer.

    +
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<Zatoshis, BalanceError>

    Reads an Zatoshis from an unsigned 64-bit little-endian integer.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_nonnegative_i64_le_bytes( +

    Source

    pub fn from_nonnegative_i64_le_bytes( bytes: [u8; 8], ) -> Result<Zatoshis, BalanceError>

    Reads a Zatoshis from a signed integer represented as a two’s complement 64-bit little-endian value.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns this Zatoshis encoded as a signed two’s complement 64-bit +

    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns this Zatoshis encoded as a signed two’s complement 64-bit little-endian value.

    -
    Source

    pub fn is_zero(&self) -> bool

    Returns whether or not this Zatoshis is the zero value.

    -
    Source

    pub fn is_positive(&self) -> bool

    Returns whether or not this Zatoshis is positive.

    -
    Source

    pub fn div_with_remainder(&self, divisor: NonZero<u64>) -> QuotRem<Zatoshis>

    Divides this Zatoshis value by the given divisor and returns the quotient and remainder.

    -

    Trait Implementations§

    Source§

    impl Add for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the + operation. Read more
    Source§

    impl Clone for Zatoshis

    Source§

    fn clone(&self) -> Zatoshis

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Zatoshis

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Div<NonZero<u64>> for Zatoshis

    Source§

    type Output = Zatoshis

    The resulting type after applying the / operator.
    Source§

    fn div(self, rhs: NonZero<u64>) -> Zatoshis

    Performs the / operation. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl Mul<u64> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: u64) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Mul<usize> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Ord for Zatoshis

    Source§

    fn cmp(&self, other: &Zatoshis) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Source

    pub fn is_zero(&self) -> bool

    Returns whether or not this Zatoshis is the zero value.

    +
    Source

    pub fn is_positive(&self) -> bool

    Returns whether or not this Zatoshis is positive.

    +
    Source

    pub fn div_with_remainder(&self, divisor: NonZero<u64>) -> QuotRem<Zatoshis>

    Divides this Zatoshis value by the given divisor and returns the quotient and remainder.

    +

    Trait Implementations§

    Source§

    impl Add for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the + operation. Read more
    Source§

    impl Clone for Zatoshis

    Source§

    fn clone(&self) -> Zatoshis

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Zatoshis

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Div<NonZero<u64>> for Zatoshis

    Source§

    type Output = Zatoshis

    The resulting type after applying the / operator.
    Source§

    fn div(self, rhs: NonZero<u64>) -> Zatoshis

    Performs the / operation. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl Mul<u64> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: u64) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Mul<usize> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Ord for Zatoshis

    Source§

    fn cmp(&self, other: &Zatoshis) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Zatoshis

    Source§

    fn eq(&self, other: &Zatoshis) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Zatoshis

    Source§

    fn partial_cmp(&self, other: &Zatoshis) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Zatoshis

    Source§

    fn eq(&self, other: &Zatoshis) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Zatoshis

    Source§

    fn partial_cmp(&self, other: &Zatoshis) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the - operation. Read more
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +the >= operator. Read more

    Source§

    impl Sub for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the - operation. Read more
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( value: ZatBalance, -) -> Result<Zatoshis, <Zatoshis as TryFrom<ZatBalance>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u64) -> Result<Zatoshis, <Zatoshis as TryFrom<u64>>::Error>

    Performs the conversion.
    Source§

    impl Copy for Zatoshis

    Source§

    impl Eq for Zatoshis

    Source§

    impl StructuralPartialEq for Zatoshis

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T

    Performs the conversion.
    Source§

    impl TryFrom<u64> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u64) -> Result<Zatoshis, <Zatoshis as TryFrom<u64>>::Error>

    Performs the conversion.
    Source§

    impl Copy for Zatoshis

    Source§

    impl Eq for Zatoshis

    Source§

    impl StructuralPartialEq for Zatoshis

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_amount.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_amount.html index 098ad7b75..1ed2f3093 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_amount.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_amount.html @@ -1 +1 @@ -arb_amount in zcash_primitives::transaction::components::amount::testing - Rust
    zcash_primitives::transaction::components::amount::testing

    Function arb_amount

    Source
    pub fn arb_amount() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_amount in zcash_primitives::transaction::components::amount::testing - Rust
    zcash_primitives::transaction::components::amount::testing

    Function arb_amount

    Source
    pub fn arb_amount() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_nonnegative_amount.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_nonnegative_amount.html index 9f9333b2e..725bdc390 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_nonnegative_amount.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_nonnegative_amount.html @@ -1 +1 @@ -arb_nonnegative_amount in zcash_primitives::transaction::components::amount::testing - Rust
    zcash_primitives::transaction::components::amount::testing

    Function arb_nonnegative_amount

    Source
    pub fn arb_nonnegative_amount() -> impl Strategy<Value = Zatoshis>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_nonnegative_amount in zcash_primitives::transaction::components::amount::testing - Rust
    zcash_primitives::transaction::components::amount::testing

    Function arb_nonnegative_amount

    Source
    pub fn arb_nonnegative_amount() -> impl Strategy<Value = Zatoshis>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_positive_amount.html b/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_positive_amount.html index 13d6ef2cf..41a429a90 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_positive_amount.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/amount/testing/fn.arb_positive_amount.html @@ -1 +1 @@ -arb_positive_amount in zcash_primitives::transaction::components::amount::testing - Rust
    zcash_primitives::transaction::components::amount::testing

    Function arb_positive_amount

    Source
    pub fn arb_positive_amount() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_positive_amount in zcash_primitives::transaction::components::amount::testing - Rust
    zcash_primitives::transaction::components::amount::testing

    Function arb_positive_amount

    Source
    pub fn arb_positive_amount() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/struct.Amount.html b/rustdoc/latest/zcash_primitives/transaction/components/struct.Amount.html index 0257b22f5..4564c3f70 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/struct.Amount.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/struct.Amount.html @@ -1,44 +1,44 @@ -Amount in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct Amount

    Source
    pub struct Amount(/* private fields */);
    Expand description

    A type-safe representation of a Zcash value delta, in zatoshis.

    +Amount in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct Amount

    Source
    pub struct Amount(/* private fields */);
    Expand description

    A type-safe representation of a Zcash value delta, in zatoshis.

    An ZatBalance can only be constructed from an integer that is within the valid monetary range of {-MAX_MONEY..MAX_MONEY} (where MAX_MONEY = 21,000,000 × 10⁸ zatoshis), and this is preserved as an invariant internally. (A Transaction containing serialized invalid ZatBalances would also be rejected by the network consensus rules.)

    -

    Implementations§

    Source§

    impl ZatBalance

    Source

    pub const fn zero() -> ZatBalance

    Returns a zero-valued ZatBalance.

    -
    Source

    pub const fn const_from_i64(amount: i64) -> ZatBalance

    Creates a constant ZatBalance from an i64.

    +

    Implementations§

    Source§

    impl ZatBalance

    Source

    pub const fn zero() -> ZatBalance

    Returns a zero-valued ZatBalance.

    +
    Source

    pub const fn const_from_i64(amount: i64) -> ZatBalance

    Creates a constant ZatBalance from an i64.

    Panics: if the amount is outside the range {-MAX_BALANCE..MAX_BALANCE}.

    -
    Source

    pub const fn const_from_u64(amount: u64) -> ZatBalance

    Creates a constant ZatBalance from a u64.

    +
    Source

    pub const fn const_from_u64(amount: u64) -> ZatBalance

    Creates a constant ZatBalance from a u64.

    Panics: if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn from_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from an i64.

    +
    Source

    pub fn from_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from an i64.

    Returns an error if the amount is outside the range {-MAX_BALANCE..MAX_BALANCE}.

    -
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates a non-negative ZatBalance from an i64.

    +
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<ZatBalance, BalanceError>

    Creates a non-negative ZatBalance from an i64.

    Returns an error if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn from_u64(amount: u64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from a u64.

    +
    Source

    pub fn from_u64(amount: u64) -> Result<ZatBalance, BalanceError>

    Creates an ZatBalance from a u64.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_i64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from a signed 64-bit little-endian integer.

    +
    Source

    pub fn from_i64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from a signed 64-bit little-endian integer.

    Returns an error if the amount is outside the range {-MAX_BALANCE..MAX_BALANCE}.

    -
    Source

    pub fn from_nonnegative_i64_le_bytes( +

    Source

    pub fn from_nonnegative_i64_le_bytes( bytes: [u8; 8], ) -> Result<ZatBalance, BalanceError>

    Reads a non-negative ZatBalance from a signed 64-bit little-endian integer.

    Returns an error if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from an unsigned 64-bit little-endian integer.

    +
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<ZatBalance, BalanceError>

    Reads an ZatBalance from an unsigned 64-bit little-endian integer.

    Returns an error if the amount is outside the range {0..MAX_BALANCE}.

    -
    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns the ZatBalance encoded as a signed 64-bit little-endian integer.

    -
    Source

    pub const fn is_positive(self) -> bool

    Returns true if self is positive and false if the ZatBalance is zero or +

    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns the ZatBalance encoded as a signed 64-bit little-endian integer.

    +
    Source

    pub const fn is_positive(self) -> bool

    Returns true if self is positive and false if the ZatBalance is zero or negative.

    -
    Source

    pub const fn is_negative(self) -> bool

    Returns true if self is negative and false if the ZatBalance is zero or +

    Source

    pub const fn is_negative(self) -> bool

    Returns true if self is negative and false if the ZatBalance is zero or positive.

    -
    Source

    pub fn sum<I>(values: I) -> Option<ZatBalance>
    where - I: IntoIterator<Item = ZatBalance>,

    Trait Implementations§

    Source§

    impl Add for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the + operation. Read more
    Source§

    impl Clone for ZatBalance

    Source§

    fn clone(&self) -> ZatBalance

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ZatBalance

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for ZatBalance

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl Mul<usize> for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<ZatBalance>

    Performs the * operation. Read more
    Source§

    impl Neg for ZatBalance

    Source§

    type Output = ZatBalance

    The resulting type after applying the - operator.
    Source§

    fn neg(self) -> ZatBalance

    Performs the unary - operation. Read more
    Source§

    impl Ord for ZatBalance

    Source§

    fn cmp(&self, other: &ZatBalance) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Source

    pub fn sum<I>(values: I) -> Option<ZatBalance>
    where + I: IntoIterator<Item = ZatBalance>,

    Trait Implementations§

    Source§

    impl Add for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the + operation. Read more
    Source§

    impl Clone for ZatBalance

    Source§

    fn clone(&self) -> ZatBalance

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ZatBalance

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for ZatBalance

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> ZatBalance

    Converts to this type from the input type.
    Source§

    impl Mul<usize> for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<ZatBalance>

    Performs the * operation. Read more
    Source§

    impl Neg for ZatBalance

    Source§

    type Output = ZatBalance

    The resulting type after applying the - operator.
    Source§

    fn neg(self) -> ZatBalance

    Performs the unary - operation. Read more
    Source§

    impl Ord for ZatBalance

    Source§

    fn cmp(&self, other: &ZatBalance) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ZatBalance

    Source§

    fn eq(&self, other: &ZatBalance) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ZatBalance

    Source§

    fn partial_cmp(&self, other: &ZatBalance) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ZatBalance

    Source§

    fn eq(&self, other: &ZatBalance) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ZatBalance

    Source§

    fn partial_cmp(&self, other: &ZatBalance) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +the >= operator. Read more

    Source§

    impl Sub for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from( value: ZatBalance, -) -> Result<Zatoshis, <Zatoshis as TryFrom<ZatBalance>>::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for ZatBalance

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<ZatBalance, BalanceError>

    Performs the conversion.
    Source§

    impl Copy for ZatBalance

    Source§

    impl Eq for ZatBalance

    Source§

    impl StructuralPartialEq for ZatBalance

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T

    Performs the conversion.
    Source§

    impl TryFrom<i64> for ZatBalance

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<ZatBalance, BalanceError>

    Performs the conversion.
    Source§

    impl Copy for ZatBalance

    Source§

    impl Eq for ZatBalance

    Source§

    impl StructuralPartialEq for ZatBalance

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/all.html b/rustdoc/latest/zcash_protocol/all.html index 40450da4f..87f0a1093 100644 --- a/rustdoc/latest/zcash_protocol/all.html +++ b/rustdoc/latest/zcash_protocol/all.html @@ -1 +1 @@ -List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Functions

    Constants

    \ No newline at end of file +List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Functions

    Constants

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/constant.H0.html b/rustdoc/latest/zcash_protocol/consensus/constant.H0.html index c1af89619..8085b96a9 100644 --- a/rustdoc/latest/zcash_protocol/consensus/constant.H0.html +++ b/rustdoc/latest/zcash_protocol/consensus/constant.H0.html @@ -1,2 +1,2 @@ -H0 in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant H0

    Source
    pub const H0: BlockHeight;
    Expand description

    The height of the genesis block on a network.

    +H0 in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant H0

    Source
    pub const H0: BlockHeight;
    Expand description

    The height of the genesis block on a network.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/constant.MAIN_NETWORK.html b/rustdoc/latest/zcash_protocol/consensus/constant.MAIN_NETWORK.html index 91726698f..741977dd7 100644 --- a/rustdoc/latest/zcash_protocol/consensus/constant.MAIN_NETWORK.html +++ b/rustdoc/latest/zcash_protocol/consensus/constant.MAIN_NETWORK.html @@ -1,2 +1,2 @@ -MAIN_NETWORK in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant MAIN_NETWORK

    Source
    pub const MAIN_NETWORK: MainNetwork;
    Expand description

    The production network.

    +MAIN_NETWORK in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant MAIN_NETWORK

    Source
    pub const MAIN_NETWORK: MainNetwork;
    Expand description

    The production network.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/constant.TEST_NETWORK.html b/rustdoc/latest/zcash_protocol/consensus/constant.TEST_NETWORK.html index 6c61fcefe..200a5adb2 100644 --- a/rustdoc/latest/zcash_protocol/consensus/constant.TEST_NETWORK.html +++ b/rustdoc/latest/zcash_protocol/consensus/constant.TEST_NETWORK.html @@ -1,2 +1,2 @@ -TEST_NETWORK in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant TEST_NETWORK

    Source
    pub const TEST_NETWORK: TestNetwork;
    Expand description

    The test network.

    +TEST_NETWORK in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant TEST_NETWORK

    Source
    pub const TEST_NETWORK: TestNetwork;
    Expand description

    The test network.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/constant.ZIP212_GRACE_PERIOD.html b/rustdoc/latest/zcash_protocol/consensus/constant.ZIP212_GRACE_PERIOD.html index 67d27552f..d2ce31c23 100644 --- a/rustdoc/latest/zcash_protocol/consensus/constant.ZIP212_GRACE_PERIOD.html +++ b/rustdoc/latest/zcash_protocol/consensus/constant.ZIP212_GRACE_PERIOD.html @@ -1,2 +1,2 @@ -ZIP212_GRACE_PERIOD in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant ZIP212_GRACE_PERIOD

    Source
    pub const ZIP212_GRACE_PERIOD: u32 = 32256;
    Expand description

    The “grace period” defined in ZIP 212.

    +ZIP212_GRACE_PERIOD in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Constant ZIP212_GRACE_PERIOD

    Source
    pub const ZIP212_GRACE_PERIOD: u32 = 32256;
    Expand description

    The “grace period” defined in ZIP 212.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/enum.BranchId.html b/rustdoc/latest/zcash_protocol/consensus/enum.BranchId.html index 24484afe0..46fb1767d 100644 --- a/rustdoc/latest/zcash_protocol/consensus/enum.BranchId.html +++ b/rustdoc/latest/zcash_protocol/consensus/enum.BranchId.html @@ -1,4 +1,4 @@ -BranchId in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum BranchId

    Source
    pub enum BranchId {
    +BranchId in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum BranchId

    Source
    pub enum BranchId {
         Sprout,
         Overwinter,
         Sapling,
    @@ -23,15 +23,15 @@
     
    §

    Canopy

    The consensus rules deployed by NetworkUpgrade::Canopy.

    §

    Nu5

    The consensus rules deployed by NetworkUpgrade::Nu5.

    §

    Nu6

    The consensus rules deployed by NetworkUpgrade::Nu6.

    -

    Implementations§

    Source§

    impl BranchId

    Source

    pub fn for_height<P: Parameters>(parameters: &P, height: BlockHeight) -> Self

    Returns the branch ID corresponding to the consensus rule set that is active at +

    Implementations§

    Source§

    impl BranchId

    Source

    pub fn for_height<P: Parameters>(parameters: &P, height: BlockHeight) -> Self

    Returns the branch ID corresponding to the consensus rule set that is active at the given height.

    This is the branch ID that should be used when creating transactions.

    -
    Source

    pub fn height_range<P: Parameters>( +

    Source

    pub fn height_range<P: Parameters>( &self, params: &P, ) -> Option<impl RangeBounds<BlockHeight>>

    Returns the range of heights for the consensus epoch associated with this branch id.

    The resulting tuple implements the RangeBounds<BlockHeight> trait.

    -
    Source

    pub fn height_bounds<P: Parameters>( +

    Source

    pub fn height_bounds<P: Parameters>( &self, params: &P, ) -> Option<(BlockHeight, Option<BlockHeight>)>

    Returns the range of heights for the consensus epoch associated with this branch id.

    @@ -43,9 +43,9 @@ in effect for the range x..
  • None means that the consensus rules corresponding to this branch id are never in effect.
  • -
    Source

    pub fn sprout_uses_groth_proofs(&self) -> bool

    Trait Implementations§

    Source§

    impl Clone for BranchId

    Source§

    fn clone(&self) -> BranchId

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BranchId

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BranchId

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl From<BranchId> for u32

    Source§

    fn from(consensus_branch_id: BranchId) -> u32

    Converts to this type from the input type.
    Source§

    impl PartialEq for BranchId

    Source§

    fn eq(&self, other: &BranchId) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl TryFrom<u32> for BranchId

    Source§

    type Error = &'static str

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u32) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Copy for BranchId

    Source§

    impl Eq for BranchId

    Source§

    impl StructuralPartialEq for BranchId

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source

    pub fn sprout_uses_groth_proofs(&self) -> bool

    Trait Implementations§

    Source§

    impl Clone for BranchId

    Source§

    fn clone(&self) -> BranchId

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BranchId

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BranchId

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl From<BranchId> for u32

    Source§

    fn from(consensus_branch_id: BranchId) -> u32

    Converts to this type from the input type.
    Source§

    impl PartialEq for BranchId

    Source§

    fn eq(&self, other: &BranchId) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl TryFrom<u32> for BranchId

    Source§

    type Error = &'static str

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u32) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Copy for BranchId

    Source§

    impl Eq for BranchId

    Source§

    impl StructuralPartialEq for BranchId

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/enum.Network.html b/rustdoc/latest/zcash_protocol/consensus/enum.Network.html index 3ae5b1785..58f36cd10 100644 --- a/rustdoc/latest/zcash_protocol/consensus/enum.Network.html +++ b/rustdoc/latest/zcash_protocol/consensus/enum.Network.html @@ -1,16 +1,16 @@ -Network in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum Network

    Source
    pub enum Network {
    +Network in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum Network

    Source
    pub enum Network {
         MainNetwork,
         TestNetwork,
     }
    Expand description

    The enumeration of known Zcash networks.

    Variants§

    §

    MainNetwork

    Zcash Mainnet.

    §

    TestNetwork

    Zcash Testnet.

    -

    Trait Implementations§

    Source§

    impl Clone for Network

    Source§

    fn clone(&self) -> Network

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Network

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for Network

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Hash for Network

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl Clone for Network

    Source§

    fn clone(&self) -> Network

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Network

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for Network

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Hash for Network

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Parameters for Network

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the -provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for Network

    Source§

    fn eq(&self, other: &Network) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for Network

    Source§

    impl Eq for Network

    Source§

    impl StructuralPartialEq for Network

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Parameters for Network

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for Network

    Source§

    fn eq(&self, other: &Network) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for Network

    Source§

    impl Eq for Network

    Source§

    impl StructuralPartialEq for Network

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where @@ -26,16 +26,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more

    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    Source§

    impl<T> ToOwned for T
    where T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/enum.NetworkType.html b/rustdoc/latest/zcash_protocol/consensus/enum.NetworkType.html index 4e4f8d167..2592c07f9 100644 --- a/rustdoc/latest/zcash_protocol/consensus/enum.NetworkType.html +++ b/rustdoc/latest/zcash_protocol/consensus/enum.NetworkType.html @@ -1,4 +1,4 @@ -NetworkType in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum NetworkType

    Source
    pub enum NetworkType {
    +NetworkType in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum NetworkType

    Source
    pub enum NetworkType {
         Main,
         Test,
         Regtest,
    @@ -8,20 +8,20 @@
     
    §

    Regtest

    Private integration / regression testing, used in zcashd.

    For some address types there is no distinction between test and regtest encodings; those will always be parsed as Network::Test.

    -

    Trait Implementations§

    Source§

    impl Clone for NetworkType

    Source§

    fn clone(&self) -> NetworkType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkType

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Hash for NetworkType

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl Clone for NetworkType

    Source§

    fn clone(&self) -> NetworkType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkType

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Hash for NetworkType

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl NetworkConstants for NetworkType

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl NetworkConstants for NetworkType

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the -network to which this NetworkConstants value applies. Read more
    Source§

    impl PartialEq for NetworkType

    Source§

    fn eq(&self, other: &NetworkType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkType

    Source§

    impl Eq for NetworkType

    Source§

    impl StructuralPartialEq for NetworkType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +applies.

    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +network to which this NetworkConstants value applies. Read more
    Source§

    impl PartialEq for NetworkType

    Source§

    fn eq(&self, other: &NetworkType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkType

    Source§

    impl Eq for NetworkType

    Source§

    impl StructuralPartialEq for NetworkType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/enum.NetworkUpgrade.html b/rustdoc/latest/zcash_protocol/consensus/enum.NetworkUpgrade.html index f9a0ea430..ebd02e26f 100644 --- a/rustdoc/latest/zcash_protocol/consensus/enum.NetworkUpgrade.html +++ b/rustdoc/latest/zcash_protocol/consensus/enum.NetworkUpgrade.html @@ -1,4 +1,4 @@ -NetworkUpgrade in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum NetworkUpgrade

    Source
    pub enum NetworkUpgrade {
    +NetworkUpgrade in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Enum NetworkUpgrade

    Source
    pub enum NetworkUpgrade {
         Overwinter,
         Sapling,
         Blossom,
    @@ -16,9 +16,9 @@
     
    §

    Canopy

    The Canopy network upgrade.

    §

    Nu5

    The Nu5 network upgrade.

    §

    Nu6

    The Nu6 network upgrade.

    -

    Trait Implementations§

    Source§

    impl Clone for NetworkUpgrade

    Source§

    fn clone(&self) -> NetworkUpgrade

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkUpgrade

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl PartialEq for NetworkUpgrade

    Source§

    fn eq(&self, other: &NetworkUpgrade) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkUpgrade

    Source§

    impl Eq for NetworkUpgrade

    Source§

    impl StructuralPartialEq for NetworkUpgrade

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Clone for NetworkUpgrade

    Source§

    fn clone(&self) -> NetworkUpgrade

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for NetworkUpgrade

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for NetworkUpgrade

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl PartialEq for NetworkUpgrade

    Source§

    fn eq(&self, other: &NetworkUpgrade) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for NetworkUpgrade

    Source§

    impl Eq for NetworkUpgrade

    Source§

    impl StructuralPartialEq for NetworkUpgrade

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/index.html b/rustdoc/latest/zcash_protocol/consensus/index.html index fb6871692..a6ea9c185 100644 --- a/rustdoc/latest/zcash_protocol/consensus/index.html +++ b/rustdoc/latest/zcash_protocol/consensus/index.html @@ -1,3 +1,3 @@ -zcash_protocol::consensus - Rust
    zcash_protocol

    Module consensus

    Source
    Expand description

    Consensus logic and parameters.

    +zcash_protocol::consensus - Rust
    zcash_protocol

    Module consensus

    Source
    Expand description

    Consensus logic and parameters.

    Modules§

    Structs§

    Enums§

    • A globally-unique identifier for a set of consensus rules within the Zcash chain.
    • The enumeration of known Zcash networks.
    • The enumeration of known Zcash network types.
    • An event that occurs at a specified height on the Zcash chain, at which point the consensus rules enforced by the network are altered.

    Constants§

    Traits§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/struct.BlockHeight.html b/rustdoc/latest/zcash_protocol/consensus/struct.BlockHeight.html index b7c690236..772840501 100644 --- a/rustdoc/latest/zcash_protocol/consensus/struct.BlockHeight.html +++ b/rustdoc/latest/zcash_protocol/consensus/struct.BlockHeight.html @@ -1,19 +1,19 @@ -BlockHeight in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Struct BlockHeight

    Source
    pub struct BlockHeight(/* private fields */);
    Expand description

    A wrapper type representing blockchain heights.

    +BlockHeight in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Struct BlockHeight

    Source
    pub struct BlockHeight(/* private fields */);
    Expand description

    A wrapper type representing blockchain heights.

    Safe conversion from various integer types, as well as addition and subtraction, are provided.

    -

    Implementations§

    Source§

    impl BlockHeight

    Source

    pub const fn from_u32(v: u32) -> BlockHeight

    Source

    pub fn saturating_sub(self, v: u32) -> BlockHeight

    Subtracts the provided value from this height, returning H0 if this would result in +

    Implementations§

    Source§

    impl BlockHeight

    Source

    pub const fn from_u32(v: u32) -> BlockHeight

    Source

    pub fn saturating_sub(self, v: u32) -> BlockHeight

    Subtracts the provided value from this height, returning H0 if this would result in underflow of the wrapped u32.

    -

    Trait Implementations§

    Source§

    impl Add<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the + operator.
    Source§

    fn add(self, other: u32) -> Self

    Performs the + operation. Read more
    Source§

    impl Clone for BlockHeight

    Source§

    fn clone(&self) -> BlockHeight

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BlockHeight

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BlockHeight

    Source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BlockHeight

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl From<BlockHeight> for i64

    Source§

    fn from(value: BlockHeight) -> i64

    Converts to this type from the input type.
    Source§

    impl From<BlockHeight> for u32

    Source§

    fn from(value: BlockHeight) -> u32

    Converts to this type from the input type.
    Source§

    impl From<BlockHeight> for u64

    Source§

    fn from(value: BlockHeight) -> u64

    Converts to this type from the input type.
    Source§

    impl From<u32> for BlockHeight

    Source§

    fn from(value: u32) -> Self

    Converts to this type from the input type.
    Source§

    impl Hash for BlockHeight

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl Add<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the + operator.
    Source§

    fn add(self, other: u32) -> Self

    Performs the + operation. Read more
    Source§

    impl Clone for BlockHeight

    Source§

    fn clone(&self) -> BlockHeight

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BlockHeight

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BlockHeight

    Source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for BlockHeight

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl From<BlockHeight> for i64

    Source§

    fn from(value: BlockHeight) -> i64

    Converts to this type from the input type.
    Source§

    impl From<BlockHeight> for u32

    Source§

    fn from(value: BlockHeight) -> u32

    Converts to this type from the input type.
    Source§

    impl From<BlockHeight> for u64

    Source§

    fn from(value: BlockHeight) -> u64

    Converts to this type from the input type.
    Source§

    impl From<u32> for BlockHeight

    Source§

    fn from(value: u32) -> Self

    Converts to this type from the input type.
    Source§

    impl Hash for BlockHeight

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for BlockHeight

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for BlockHeight

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for BlockHeight

    Source§

    fn eq(&self, other: &BlockHeight) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for BlockHeight

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for BlockHeight

    Source§

    fn eq(&self, other: &BlockHeight) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for BlockHeight

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: u32) -> Self

    Performs the - operation. Read more
    Source§

    impl Sub for BlockHeight

    Source§

    type Output = u32

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: BlockHeight) -> u32

    Performs the - operation. Read more
    Source§

    impl TestCheckpoint for BlockHeight

    Available on crate feature test-dependencies only.
    Source§

    fn from_u64(value: u64) -> Self

    Source§

    impl TryFrom<i32> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i32) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u64) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Copy for BlockHeight

    Source§

    impl Eq for BlockHeight

    Source§

    impl StructuralPartialEq for BlockHeight

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl Sub<u32> for BlockHeight

    Source§

    type Output = BlockHeight

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: u32) -> Self

    Performs the - operation. Read more
    Source§

    impl Sub for BlockHeight

    Source§

    type Output = u32

    The resulting type after applying the - operator.
    Source§

    fn sub(self, other: BlockHeight) -> u32

    Performs the - operation. Read more
    Source§

    impl TestCheckpoint for BlockHeight

    Available on crate feature test-dependencies only.
    Source§

    fn from_u64(value: u64) -> Self

    Source§

    impl TryFrom<i32> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i32) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for BlockHeight

    Source§

    type Error = TryFromIntError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u64) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Copy for BlockHeight

    Source§

    impl Eq for BlockHeight

    Source§

    impl StructuralPartialEq for BlockHeight

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/struct.MainNetwork.html b/rustdoc/latest/zcash_protocol/consensus/struct.MainNetwork.html index 8c4d77da4..5fb0c977d 100644 --- a/rustdoc/latest/zcash_protocol/consensus/struct.MainNetwork.html +++ b/rustdoc/latest/zcash_protocol/consensus/struct.MainNetwork.html @@ -1,9 +1,9 @@ -MainNetwork in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Struct MainNetwork

    Source
    pub struct MainNetwork;
    Expand description

    Marker struct for the production network.

    -

    Trait Implementations§

    Source§

    impl Clone for MainNetwork

    Source§

    fn clone(&self) -> MainNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for MainNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Parameters for MainNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the -provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for MainNetwork

    Source§

    fn eq(&self, other: &MainNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for MainNetwork

    Source§

    impl Eq for MainNetwork

    Source§

    impl StructuralPartialEq for MainNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +MainNetwork in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Struct MainNetwork

    Source
    pub struct MainNetwork;
    Expand description

    Marker struct for the production network.

    +

    Trait Implementations§

    Source§

    impl Clone for MainNetwork

    Source§

    fn clone(&self) -> MainNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for MainNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Parameters for MainNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for MainNetwork

    Source§

    fn eq(&self, other: &MainNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for MainNetwork

    Source§

    impl Eq for MainNetwork

    Source§

    impl StructuralPartialEq for MainNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where @@ -19,16 +19,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more

    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    Source§

    impl<T> ToOwned for T
    where T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/struct.TestNetwork.html b/rustdoc/latest/zcash_protocol/consensus/struct.TestNetwork.html index 135b7522e..2798cf52a 100644 --- a/rustdoc/latest/zcash_protocol/consensus/struct.TestNetwork.html +++ b/rustdoc/latest/zcash_protocol/consensus/struct.TestNetwork.html @@ -1,9 +1,9 @@ -TestNetwork in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Struct TestNetwork

    Source
    pub struct TestNetwork;
    Expand description

    Marker struct for the test network.

    -

    Trait Implementations§

    Source§

    impl Clone for TestNetwork

    Source§

    fn clone(&self) -> TestNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TestNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for TestNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by -this type. Read more
    Source§

    impl Parameters for TestNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the -provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for TestNetwork

    Source§

    fn eq(&self, other: &TestNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for TestNetwork

    Source§

    impl Eq for TestNetwork

    Source§

    impl StructuralPartialEq for TestNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +TestNetwork in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Struct TestNetwork

    Source
    pub struct TestNetwork;
    Expand description

    Marker struct for the test network.

    +

    Trait Implementations§

    Source§

    impl Clone for TestNetwork

    Source§

    fn clone(&self) -> TestNetwork

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TestNetwork

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl DynamicUsage for TestNetwork

    Source§

    fn dynamic_usage(&self) -> usize

    Returns a best estimate of the amount of heap-allocated memory used by this type. Read more
    Source§

    fn dynamic_usage_bounds(&self) -> (usize, Option<usize>)

    Returns the lower and upper bounds on the amount of heap-allocated memory used by +this type. Read more
    Source§

    impl Parameters for TestNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for TestNetwork

    Source§

    fn eq(&self, other: &TestNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for TestNetwork

    Source§

    impl Eq for TestNetwork

    Source§

    impl StructuralPartialEq for TestNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where @@ -19,16 +19,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more

    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    Source§

    impl<T> ToOwned for T
    where T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_branch_id.html b/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_branch_id.html index 6834c4b9d..5640ffe67 100644 --- a/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_branch_id.html +++ b/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_branch_id.html @@ -1 +1 @@ -arb_branch_id in zcash_protocol::consensus::testing - Rust
    zcash_protocol::consensus::testing

    Function arb_branch_id

    Source
    pub fn arb_branch_id() -> impl Strategy<Value = BranchId>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_branch_id in zcash_protocol::consensus::testing - Rust
    zcash_protocol::consensus::testing

    Function arb_branch_id

    Source
    pub fn arb_branch_id() -> impl Strategy<Value = BranchId>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_height.html b/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_height.html index 1f42afb19..0b0342eae 100644 --- a/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_height.html +++ b/rustdoc/latest/zcash_protocol/consensus/testing/fn.arb_height.html @@ -1,4 +1,4 @@ -arb_height in zcash_protocol::consensus::testing - Rust
    zcash_protocol::consensus::testing

    Function arb_height

    Source
    pub fn arb_height<P: Parameters>(
    +arb_height in zcash_protocol::consensus::testing - Rust
    zcash_protocol::consensus::testing

    Function arb_height

    Source
    pub fn arb_height<P: Parameters>(
         branch_id: BranchId,
         params: &P,
     ) -> impl Strategy<Value = Option<BlockHeight>>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/testing/index.html b/rustdoc/latest/zcash_protocol/consensus/testing/index.html index 158696677..95e9bb6da 100644 --- a/rustdoc/latest/zcash_protocol/consensus/testing/index.html +++ b/rustdoc/latest/zcash_protocol/consensus/testing/index.html @@ -1 +1 @@ -zcash_protocol::consensus::testing - Rust
    zcash_protocol::consensus

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file +zcash_protocol::consensus::testing - Rust
    zcash_protocol::consensus

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/trait.NetworkConstants.html b/rustdoc/latest/zcash_protocol/consensus/trait.NetworkConstants.html index d1bc4f73b..8b0c9d020 100644 --- a/rustdoc/latest/zcash_protocol/consensus/trait.NetworkConstants.html +++ b/rustdoc/latest/zcash_protocol/consensus/trait.NetworkConstants.html @@ -1,4 +1,4 @@ -NetworkConstants in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Trait NetworkConstants

    Source
    pub trait NetworkConstants: Clone {
    +NetworkConstants in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Trait NetworkConstants

    Source
    pub trait NetworkConstants: Clone {
         // Required methods
         fn coin_type(&self) -> u32;
         fn hrp_sapling_extended_spending_key(&self) -> &'static str;
    @@ -9,26 +9,26 @@
         fn b58_script_address_prefix(&self) -> [u8; 2];
         fn hrp_tex_address(&self) -> &'static str;
     }
    Expand description

    Constants associated with a given Zcash network.

    -

    Required Methods§

    Source

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.

    -
    Source

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +

    Required Methods§

    Source

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.

    +
    Source

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys for the network to which this NetworkConstants value applies.

    Defined in ZIP 32.

    -
    Source

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +

    Source

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full viewing keys for the network to which this NetworkConstants value applies.

    Defined in ZIP 32.

    -
    Source

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +

    Source

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses for the network to which this NetworkConstants value applies.

    Defined in section 5.6.4 of the Zcash Protocol Specification.

    -
    Source

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +

    Source

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value applies.

    Defined in the Zcash Protocol Specification section 5.6.3.

    -
    Source

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +

    Source

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value applies.

    -
    Source

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +

    Source

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash payment addresses for the network to which this NetworkConstants value applies.

    -
    Source

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +

    Source

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies.

    Defined in ZIP 320.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/consensus/trait.Parameters.html b/rustdoc/latest/zcash_protocol/consensus/trait.Parameters.html index c12cf0a37..32a641a9b 100644 --- a/rustdoc/latest/zcash_protocol/consensus/trait.Parameters.html +++ b/rustdoc/latest/zcash_protocol/consensus/trait.Parameters.html @@ -1,4 +1,4 @@ -Parameters in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Trait Parameters

    Source
    pub trait Parameters: Clone {
    +Parameters in zcash_protocol::consensus - Rust
    zcash_protocol::consensus

    Trait Parameters

    Source
    pub trait Parameters: Clone {
         // Required methods
         fn network_type(&self) -> NetworkType;
         fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>;
    @@ -6,10 +6,10 @@
         // Provided method
         fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool { ... }
     }
    Expand description

    Zcash consensus parameters.

    -

    Required Methods§

    Source

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.

    -
    Source

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, +

    Required Methods§

    Source

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.

    +
    Source

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, if an activation height has been set.

    -

    Provided Methods§

    Source

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +

    Provided Methods§

    Source

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the provided block height on the network to which this Parameters value applies.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    Source§

    impl Parameters for Network

    Source§

    impl Parameters for LocalNetwork

    Available on crate feature local-consensus only.

    Parameters implementation for LocalNetwork

    -
    Source§

    impl Parameters for MainNetwork

    Source§

    impl Parameters for TestNetwork

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    Source§

    impl Parameters for Network

    Source§

    impl Parameters for LocalNetwork

    Available on crate feature local-consensus only.

    Parameters implementation for LocalNetwork

    +
    Source§

    impl Parameters for MainNetwork

    Source§

    impl Parameters for TestNetwork

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/index.html b/rustdoc/latest/zcash_protocol/constants/index.html index 421c88624..f26113f56 100644 --- a/rustdoc/latest/zcash_protocol/constants/index.html +++ b/rustdoc/latest/zcash_protocol/constants/index.html @@ -1,2 +1,2 @@ -zcash_protocol::constants - Rust
    zcash_protocol

    Module constants

    Source
    Expand description

    Network-specific Zcash constants.

    +zcash_protocol::constants - Rust
    zcash_protocol

    Module constants

    Source
    Expand description

    Network-specific Zcash constants.

    Modules§

    • Constants for the Zcash main network.
    • Regtest constants
    • Constants for the Zcash test network.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html index 7ba1dda9b..391852f2e 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html @@ -1,2 +1,2 @@ -B58_PUBKEY_ADDRESS_PREFIX in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant B58_PUBKEY_ADDRESS_PREFIX

    Source
    pub const B58_PUBKEY_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded mainnet PublicKeyHash.

    +B58_PUBKEY_ADDRESS_PREFIX in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant B58_PUBKEY_ADDRESS_PREFIX

    Source
    pub const B58_PUBKEY_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded mainnet PublicKeyHash.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html index 170bd1d1f..5f96d41cf 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html @@ -1,2 +1,2 @@ -B58_SCRIPT_ADDRESS_PREFIX in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant B58_SCRIPT_ADDRESS_PREFIX

    Source
    pub const B58_SCRIPT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded mainnet ScriptHash.

    +B58_SCRIPT_ADDRESS_PREFIX in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant B58_SCRIPT_ADDRESS_PREFIX

    Source
    pub const B58_SCRIPT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded mainnet ScriptHash.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SPROUT_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SPROUT_ADDRESS_PREFIX.html index 79bfbf20f..b16e04c93 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SPROUT_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.B58_SPROUT_ADDRESS_PREFIX.html @@ -1,3 +1,3 @@ -B58_SPROUT_ADDRESS_PREFIX in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant B58_SPROUT_ADDRESS_PREFIX

    Source
    pub const B58_SPROUT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded mainnet Sprout address.

    +B58_SPROUT_ADDRESS_PREFIX in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant B58_SPROUT_ADDRESS_PREFIX

    Source
    pub const B58_SPROUT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded mainnet Sprout address.

    Defined in the Zcash Protocol Specification section 5.6.3.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.COIN_TYPE.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.COIN_TYPE.html index 60d8b970b..370b38d8f 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.COIN_TYPE.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.COIN_TYPE.html @@ -1,2 +1,2 @@ -COIN_TYPE in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant COIN_TYPE

    Source
    pub const COIN_TYPE: u32 = 133;
    Expand description

    The mainnet coin type for ZEC, as defined by SLIP 44.

    +COIN_TYPE in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant COIN_TYPE

    Source
    pub const COIN_TYPE: u32 = 133;
    Expand description

    The mainnet coin type for ZEC, as defined by SLIP 44.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html index 5b9bedcc0..fc156a33d 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html @@ -1,3 +1,3 @@ -HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY: &str = "zxviews";
    Expand description

    The HRP for a Bech32-encoded mainnet ExtendedFullViewingKey.

    +HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY: &str = "zxviews";
    Expand description

    The HRP for a Bech32-encoded mainnet ExtendedFullViewingKey.

    Defined in ZIP 32.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html index 4623d335a..6cc5678af 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html @@ -1,3 +1,3 @@ -HRP_SAPLING_EXTENDED_SPENDING_KEY in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_SAPLING_EXTENDED_SPENDING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_SPENDING_KEY: &str = "secret-extended-key-main";
    Expand description

    The HRP for a Bech32-encoded mainnet Sapling ExtendedSpendingKey.

    +HRP_SAPLING_EXTENDED_SPENDING_KEY in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_SAPLING_EXTENDED_SPENDING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_SPENDING_KEY: &str = "secret-extended-key-main";
    Expand description

    The HRP for a Bech32-encoded mainnet Sapling ExtendedSpendingKey.

    Defined in ZIP 32.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html index ee64ce5db..051c5e479 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html @@ -1,3 +1,3 @@ -HRP_SAPLING_PAYMENT_ADDRESS in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_SAPLING_PAYMENT_ADDRESS

    Source
    pub const HRP_SAPLING_PAYMENT_ADDRESS: &str = "zs";
    Expand description

    The HRP for a Bech32-encoded mainnet Sapling PaymentAddress.

    +HRP_SAPLING_PAYMENT_ADDRESS in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_SAPLING_PAYMENT_ADDRESS

    Source
    pub const HRP_SAPLING_PAYMENT_ADDRESS: &str = "zs";
    Expand description

    The HRP for a Bech32-encoded mainnet Sapling PaymentAddress.

    Defined in section 5.6.4 of the Zcash Protocol Specification.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_TEX_ADDRESS.html b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_TEX_ADDRESS.html index 5bc45edef..49f5e40c7 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_TEX_ADDRESS.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/constant.HRP_TEX_ADDRESS.html @@ -1,2 +1,2 @@ -HRP_TEX_ADDRESS in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_TEX_ADDRESS

    Source
    pub const HRP_TEX_ADDRESS: &str = "tex";
    Expand description

    The HRP for a Bech32m-encoded mainnet ZIP 320 TEX address.

    +HRP_TEX_ADDRESS in zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants::mainnet

    Constant HRP_TEX_ADDRESS

    Source
    pub const HRP_TEX_ADDRESS: &str = "tex";
    Expand description

    The HRP for a Bech32m-encoded mainnet ZIP 320 TEX address.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/mainnet/index.html b/rustdoc/latest/zcash_protocol/constants/mainnet/index.html index 73e7036a4..7386d4cbc 100644 --- a/rustdoc/latest/zcash_protocol/constants/mainnet/index.html +++ b/rustdoc/latest/zcash_protocol/constants/mainnet/index.html @@ -1,2 +1,2 @@ -zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants

    Module mainnet

    Source
    Expand description

    Constants for the Zcash main network.

    +zcash_protocol::constants::mainnet - Rust
    zcash_protocol::constants

    Module mainnet

    Source
    Expand description

    Constants for the Zcash main network.

    Constants§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_PUBKEY_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_PUBKEY_ADDRESS_PREFIX.html index 0d4cddd90..67588873e 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_PUBKEY_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_PUBKEY_ADDRESS_PREFIX.html @@ -1,3 +1,3 @@ -B58_PUBKEY_ADDRESS_PREFIX in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant B58_PUBKEY_ADDRESS_PREFIX

    Source
    pub const B58_PUBKEY_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded regtest transparent PublicKeyHash. +B58_PUBKEY_ADDRESS_PREFIX in zcash_protocol::constants::regtest - Rust

    zcash_protocol::constants::regtest

    Constant B58_PUBKEY_ADDRESS_PREFIX

    Source
    pub const B58_PUBKEY_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded regtest transparent PublicKeyHash. Same as the testnet prefix.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SCRIPT_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SCRIPT_ADDRESS_PREFIX.html index 62a0bdb62..e78148f01 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SCRIPT_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SCRIPT_ADDRESS_PREFIX.html @@ -1,3 +1,3 @@ -B58_SCRIPT_ADDRESS_PREFIX in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant B58_SCRIPT_ADDRESS_PREFIX

    Source
    pub const B58_SCRIPT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded regtest transparent ScriptHash. +B58_SCRIPT_ADDRESS_PREFIX in zcash_protocol::constants::regtest - Rust

    zcash_protocol::constants::regtest

    Constant B58_SCRIPT_ADDRESS_PREFIX

    Source
    pub const B58_SCRIPT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded regtest transparent ScriptHash. Same as the testnet prefix.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SPROUT_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SPROUT_ADDRESS_PREFIX.html index d2a94d715..6cce3bf1b 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SPROUT_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.B58_SPROUT_ADDRESS_PREFIX.html @@ -1,4 +1,4 @@ -B58_SPROUT_ADDRESS_PREFIX in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant B58_SPROUT_ADDRESS_PREFIX

    Source
    pub const B58_SPROUT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded regtest Sprout address.

    +B58_SPROUT_ADDRESS_PREFIX in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant B58_SPROUT_ADDRESS_PREFIX

    Source
    pub const B58_SPROUT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded regtest Sprout address.

    Defined in the Zcash Protocol Specification section 5.6.3. Same as the testnet prefix.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.COIN_TYPE.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.COIN_TYPE.html index 087e0e9b5..50666fdce 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.COIN_TYPE.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.COIN_TYPE.html @@ -1,2 +1,2 @@ -COIN_TYPE in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant COIN_TYPE

    Source
    pub const COIN_TYPE: u32 = 1;
    Expand description

    The regtest cointype reuses the testnet cointype

    +COIN_TYPE in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant COIN_TYPE

    Source
    pub const COIN_TYPE: u32 = 1;
    Expand description

    The regtest cointype reuses the testnet cointype

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html index 467ecfd11..e81a1d35d 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html @@ -1,3 +1,3 @@ -HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY: &str = "zxviewregtestsapling";
    Expand description

    The HRP for a Bech32-encoded regtest Sapling ExtendedFullViewingKey.

    +HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY: &str = "zxviewregtestsapling";
    Expand description

    The HRP for a Bech32-encoded regtest Sapling ExtendedFullViewingKey.

    It is defined in the zcashd codebase.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html index 4bdfa8b6c..2b7823d25 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html @@ -1,3 +1,3 @@ -HRP_SAPLING_EXTENDED_SPENDING_KEY in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_SAPLING_EXTENDED_SPENDING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_SPENDING_KEY: &str = "secret-extended-key-regtest";
    Expand description

    The HRP for a Bech32-encoded regtest Sapling ExtendedSpendingKey.

    +HRP_SAPLING_EXTENDED_SPENDING_KEY in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_SAPLING_EXTENDED_SPENDING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_SPENDING_KEY: &str = "secret-extended-key-regtest";
    Expand description

    The HRP for a Bech32-encoded regtest Sapling ExtendedSpendingKey.

    It is defined in the zcashd codebase.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_PAYMENT_ADDRESS.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_PAYMENT_ADDRESS.html index dd410d582..0ad3bbf54 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_PAYMENT_ADDRESS.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_SAPLING_PAYMENT_ADDRESS.html @@ -1,3 +1,3 @@ -HRP_SAPLING_PAYMENT_ADDRESS in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_SAPLING_PAYMENT_ADDRESS

    Source
    pub const HRP_SAPLING_PAYMENT_ADDRESS: &str = "zregtestsapling";
    Expand description

    The HRP for a Bech32-encoded regtest Sapling PaymentAddress.

    +HRP_SAPLING_PAYMENT_ADDRESS in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_SAPLING_PAYMENT_ADDRESS

    Source
    pub const HRP_SAPLING_PAYMENT_ADDRESS: &str = "zregtestsapling";
    Expand description

    The HRP for a Bech32-encoded regtest Sapling PaymentAddress.

    It is defined in the zcashd codebase.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_TEX_ADDRESS.html b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_TEX_ADDRESS.html index 8f035d50d..fceaa1bc6 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_TEX_ADDRESS.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/constant.HRP_TEX_ADDRESS.html @@ -1,2 +1,2 @@ -HRP_TEX_ADDRESS in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_TEX_ADDRESS

    Source
    pub const HRP_TEX_ADDRESS: &str = "texregtest";
    Expand description

    The HRP for a Bech32m-encoded regtest ZIP 320 TEX address.

    +HRP_TEX_ADDRESS in zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants::regtest

    Constant HRP_TEX_ADDRESS

    Source
    pub const HRP_TEX_ADDRESS: &str = "texregtest";
    Expand description

    The HRP for a Bech32m-encoded regtest ZIP 320 TEX address.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/regtest/index.html b/rustdoc/latest/zcash_protocol/constants/regtest/index.html index 29d0be288..ea2bd572d 100644 --- a/rustdoc/latest/zcash_protocol/constants/regtest/index.html +++ b/rustdoc/latest/zcash_protocol/constants/regtest/index.html @@ -1,4 +1,4 @@ -zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants

    Module regtest

    Source
    Expand description

    §Regtest constants

    +zcash_protocol::constants::regtest - Rust
    zcash_protocol::constants

    Module regtest

    Source
    Expand description

    §Regtest constants

    regtest is a zcashd-specific environment used for local testing. They mostly reuse the testnet constants. These constants are defined in the zcashd codebase.

    diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html index 550d29736..c6e9bfaea 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_PUBKEY_ADDRESS_PREFIX.html @@ -1,2 +1,2 @@ -B58_PUBKEY_ADDRESS_PREFIX in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant B58_PUBKEY_ADDRESS_PREFIX

    Source
    pub const B58_PUBKEY_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded testnet transparent PublicKeyHash.

    +B58_PUBKEY_ADDRESS_PREFIX in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant B58_PUBKEY_ADDRESS_PREFIX

    Source
    pub const B58_PUBKEY_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded testnet transparent PublicKeyHash.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html index 61fd2ec83..d6b328883 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SCRIPT_ADDRESS_PREFIX.html @@ -1,2 +1,2 @@ -B58_SCRIPT_ADDRESS_PREFIX in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant B58_SCRIPT_ADDRESS_PREFIX

    Source
    pub const B58_SCRIPT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded testnet transparent ScriptHash.

    +B58_SCRIPT_ADDRESS_PREFIX in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant B58_SCRIPT_ADDRESS_PREFIX

    Source
    pub const B58_SCRIPT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded testnet transparent ScriptHash.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SPROUT_ADDRESS_PREFIX.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SPROUT_ADDRESS_PREFIX.html index 53c04bbe6..be0b2ec45 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SPROUT_ADDRESS_PREFIX.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.B58_SPROUT_ADDRESS_PREFIX.html @@ -1,3 +1,3 @@ -B58_SPROUT_ADDRESS_PREFIX in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant B58_SPROUT_ADDRESS_PREFIX

    Source
    pub const B58_SPROUT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded testnet Sprout address.

    +B58_SPROUT_ADDRESS_PREFIX in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant B58_SPROUT_ADDRESS_PREFIX

    Source
    pub const B58_SPROUT_ADDRESS_PREFIX: [u8; 2];
    Expand description

    The prefix for a Base58Check-encoded testnet Sprout address.

    Defined in the Zcash Protocol Specification section 5.6.3.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.COIN_TYPE.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.COIN_TYPE.html index c8f7ca1c1..955803796 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.COIN_TYPE.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.COIN_TYPE.html @@ -1,2 +1,2 @@ -COIN_TYPE in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant COIN_TYPE

    Source
    pub const COIN_TYPE: u32 = 1;
    Expand description

    The testnet coin type for ZEC, as defined by SLIP 44.

    +COIN_TYPE in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant COIN_TYPE

    Source
    pub const COIN_TYPE: u32 = 1;
    Expand description

    The testnet coin type for ZEC, as defined by SLIP 44.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html index 1867de5c5..9c21f16fa 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY.html @@ -1,3 +1,3 @@ -HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY: &str = "zxviewtestsapling";
    Expand description

    The HRP for a Bech32-encoded testnet Sapling ExtendedFullViewingKey.

    +HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_FULL_VIEWING_KEY: &str = "zxviewtestsapling";
    Expand description

    The HRP for a Bech32-encoded testnet Sapling ExtendedFullViewingKey.

    Defined in ZIP 32.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html index 2e2e0f033..c416a2fae 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_EXTENDED_SPENDING_KEY.html @@ -1,3 +1,3 @@ -HRP_SAPLING_EXTENDED_SPENDING_KEY in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_SAPLING_EXTENDED_SPENDING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_SPENDING_KEY: &str = "secret-extended-key-test";
    Expand description

    The HRP for a Bech32-encoded testnet Sapling ExtendedSpendingKey.

    +HRP_SAPLING_EXTENDED_SPENDING_KEY in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_SAPLING_EXTENDED_SPENDING_KEY

    Source
    pub const HRP_SAPLING_EXTENDED_SPENDING_KEY: &str = "secret-extended-key-test";
    Expand description

    The HRP for a Bech32-encoded testnet Sapling ExtendedSpendingKey.

    Defined in ZIP 32.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html index e0eb138d9..10bc28a5a 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_SAPLING_PAYMENT_ADDRESS.html @@ -1,3 +1,3 @@ -HRP_SAPLING_PAYMENT_ADDRESS in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_SAPLING_PAYMENT_ADDRESS

    Source
    pub const HRP_SAPLING_PAYMENT_ADDRESS: &str = "ztestsapling";
    Expand description

    The HRP for a Bech32-encoded testnet Sapling PaymentAddress.

    +HRP_SAPLING_PAYMENT_ADDRESS in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_SAPLING_PAYMENT_ADDRESS

    Source
    pub const HRP_SAPLING_PAYMENT_ADDRESS: &str = "ztestsapling";
    Expand description

    The HRP for a Bech32-encoded testnet Sapling PaymentAddress.

    Defined in section 5.6.4 of the Zcash Protocol Specification.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_TEX_ADDRESS.html b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_TEX_ADDRESS.html index 0574dd8c9..307659145 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_TEX_ADDRESS.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/constant.HRP_TEX_ADDRESS.html @@ -1,2 +1,2 @@ -HRP_TEX_ADDRESS in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_TEX_ADDRESS

    Source
    pub const HRP_TEX_ADDRESS: &str = "textest";
    Expand description

    The HRP for a Bech32m-encoded testnet ZIP 320 TEX address.

    +HRP_TEX_ADDRESS in zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants::testnet

    Constant HRP_TEX_ADDRESS

    Source
    pub const HRP_TEX_ADDRESS: &str = "textest";
    Expand description

    The HRP for a Bech32m-encoded testnet ZIP 320 TEX address.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/constants/testnet/index.html b/rustdoc/latest/zcash_protocol/constants/testnet/index.html index 5fe9bfb0e..7d92f3b9e 100644 --- a/rustdoc/latest/zcash_protocol/constants/testnet/index.html +++ b/rustdoc/latest/zcash_protocol/constants/testnet/index.html @@ -1,2 +1,2 @@ -zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants

    Module testnet

    Source
    Expand description

    Constants for the Zcash test network.

    +zcash_protocol::constants::testnet - Rust
    zcash_protocol::constants

    Module testnet

    Source
    Expand description

    Constants for the Zcash test network.

    Constants§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/enum.PoolType.html b/rustdoc/latest/zcash_protocol/enum.PoolType.html index e99d2e850..13fde027b 100644 --- a/rustdoc/latest/zcash_protocol/enum.PoolType.html +++ b/rustdoc/latest/zcash_protocol/enum.PoolType.html @@ -1,17 +1,17 @@ -PoolType in zcash_protocol - Rust
    zcash_protocol

    Enum PoolType

    Source
    pub enum PoolType {
    +PoolType in zcash_protocol - Rust
    zcash_protocol

    Enum PoolType

    Source
    pub enum PoolType {
         Transparent,
         Shielded(ShieldedProtocol),
     }
    Expand description

    A value pool in the Zcash protocol.

    Variants§

    §

    Transparent

    The transparent value pool

    §

    Shielded(ShieldedProtocol)

    A shielded value pool.

    -

    Implementations§

    Source§

    impl PoolType

    Source

    pub const TRANSPARENT: PoolType = PoolType::Transparent

    Source

    pub const SAPLING: PoolType = _

    Source

    pub const ORCHARD: PoolType = _

    Trait Implementations§

    Source§

    impl Clone for PoolType

    Source§

    fn clone(&self) -> PoolType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for PoolType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for PoolType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Ord for PoolType

    Source§

    fn cmp(&self, other: &PoolType) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Implementations§

    Source§

    impl PoolType

    Source

    pub const TRANSPARENT: PoolType = PoolType::Transparent

    Source

    pub const SAPLING: PoolType = _

    Source

    pub const ORCHARD: PoolType = _

    Trait Implementations§

    Source§

    impl Clone for PoolType

    Source§

    fn clone(&self) -> PoolType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for PoolType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for PoolType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Ord for PoolType

    Source§

    fn cmp(&self, other: &PoolType) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for PoolType

    Source§

    fn eq(&self, other: &PoolType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for PoolType

    Source§

    fn partial_cmp(&self, other: &PoolType) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for PoolType

    Source§

    fn eq(&self, other: &PoolType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for PoolType

    Source§

    fn partial_cmp(&self, other: &PoolType) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Copy for PoolType

    Source§

    impl Eq for PoolType

    Source§

    impl StructuralPartialEq for PoolType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl Copy for PoolType

    Source§

    impl Eq for PoolType

    Source§

    impl StructuralPartialEq for PoolType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/enum.ShieldedProtocol.html b/rustdoc/latest/zcash_protocol/enum.ShieldedProtocol.html index 65cde6233..d94d2ca05 100644 --- a/rustdoc/latest/zcash_protocol/enum.ShieldedProtocol.html +++ b/rustdoc/latest/zcash_protocol/enum.ShieldedProtocol.html @@ -1,17 +1,17 @@ -ShieldedProtocol in zcash_protocol - Rust
    zcash_protocol

    Enum ShieldedProtocol

    Source
    pub enum ShieldedProtocol {
    +ShieldedProtocol in zcash_protocol - Rust
    zcash_protocol

    Enum ShieldedProtocol

    Source
    pub enum ShieldedProtocol {
         Sapling,
         Orchard,
     }
    Expand description

    A Zcash shielded transfer protocol.

    Variants§

    §

    Sapling

    The Sapling protocol

    §

    Orchard

    The Orchard protocol

    -

    Trait Implementations§

    Source§

    impl Clone for ShieldedProtocol

    Source§

    fn clone(&self) -> ShieldedProtocol

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ShieldedProtocol

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Ord for ShieldedProtocol

    Source§

    fn cmp(&self, other: &ShieldedProtocol) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Trait Implementations§

    Source§

    impl Clone for ShieldedProtocol

    Source§

    fn clone(&self) -> ShieldedProtocol

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ShieldedProtocol

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Ord for ShieldedProtocol

    Source§

    fn cmp(&self, other: &ShieldedProtocol) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ShieldedProtocol

    Source§

    fn eq(&self, other: &ShieldedProtocol) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ShieldedProtocol

    Source§

    fn partial_cmp(&self, other: &ShieldedProtocol) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ShieldedProtocol

    Source§

    fn eq(&self, other: &ShieldedProtocol) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ShieldedProtocol

    Source§

    fn partial_cmp(&self, other: &ShieldedProtocol) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Copy for ShieldedProtocol

    Source§

    impl Eq for ShieldedProtocol

    Source§

    impl StructuralPartialEq for ShieldedProtocol

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl Copy for ShieldedProtocol

    Source§

    impl Eq for ShieldedProtocol

    Source§

    impl StructuralPartialEq for ShieldedProtocol

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/index.html b/rustdoc/latest/zcash_protocol/index.html index 8a753b8d8..fb3b59dd3 100644 --- a/rustdoc/latest/zcash_protocol/index.html +++ b/rustdoc/latest/zcash_protocol/index.html @@ -1,4 +1,4 @@ -zcash_protocol - Rust

    Crate zcash_protocol

    Source
    Expand description

    A crate for Zcash protocol constants and value types.

    +zcash_protocol - Rust

    Crate zcash_protocol

    Source
    Expand description

    A crate for Zcash protocol constants and value types.

    zcash_protocol contains Rust structs, traits and functions that provide the network constants for the Zcash main and test networks, as well types for representing ZEC amounts and value balances.

    diff --git a/rustdoc/latest/zcash_protocol/local_consensus/index.html b/rustdoc/latest/zcash_protocol/local_consensus/index.html index 7333d9d76..5cd890aa1 100644 --- a/rustdoc/latest/zcash_protocol/local_consensus/index.html +++ b/rustdoc/latest/zcash_protocol/local_consensus/index.html @@ -1,4 +1,4 @@ -zcash_protocol::local_consensus - Rust
    zcash_protocol

    Module local_consensus

    Source
    Available on crate feature local-consensus only.

    Structs§

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Parameters for LocalNetwork

    Parameters implementation for LocalNetwork

    Source§

    fn network_type(&self) -> NetworkType

    Returns the type of network configured by this set of consensus parameters.
    Source§

    fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>

    Returns the activation height for a particular network upgrade, -if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the +if an activation height has been set.
    Source§

    fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool

    Determines whether the specified network upgrade is active as of the provided block height on the network to which this Parameters value applies.
    Source§

    impl PartialEq for LocalNetwork

    Source§

    fn eq(&self, other: &LocalNetwork) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    Source§

    impl Copy for LocalNetwork

    Source§

    impl Eq for LocalNetwork

    Source§

    impl StructuralPartialEq for LocalNetwork

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where @@ -38,16 +38,16 @@ F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where - P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full -viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses -for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout +otherwise. Read more
    Source§

    impl<P> NetworkConstants for P
    where + P: Parameters,

    Source§

    fn coin_type(&self) -> u32

    The coin type for ZEC, as defined by SLIP 44.
    Source§

    fn hrp_sapling_extended_spending_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str

    Returns the human-readable prefix for Bech32-encoded Sapling extended full +viewing keys for the network to which this NetworkConstants value applies. Read more
    Source§

    fn hrp_sapling_payment_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for Sapling payment addresses +for the network to which this NetworkConstants value applies. Read more
    Source§

    fn b58_sprout_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded Sprout payment addresses for the network to which this NetworkConstants value -applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent +applies. Read more
    Source§

    fn b58_pubkey_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value -applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash -payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the +applies.
    Source§

    fn b58_script_address_prefix(&self) -> [u8; 2]

    Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash +payment addresses for the network to which this NetworkConstants value applies.
    Source§

    fn hrp_tex_address(&self) -> &'static str

    Returns the Bech32-encoded human-readable prefix for TEX addresses, for the network to which this NetworkConstants value applies. Read more
    Source§

    impl<T> ToOwned for T
    where T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/rustdoc/latest/zcash_protocol/memo/enum.Error.html b/rustdoc/latest/zcash_protocol/memo/enum.Error.html index 8dd5eba90..c19f38486 100644 --- a/rustdoc/latest/zcash_protocol/memo/enum.Error.html +++ b/rustdoc/latest/zcash_protocol/memo/enum.Error.html @@ -1,9 +1,9 @@ -Error in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Enum Error

    Source
    pub enum Error {
    +Error in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Enum Error

    Source
    pub enum Error {
         InvalidUtf8(Utf8Error),
         TooLong(usize),
     }
    Expand description

    Errors that may result from attempting to construct an invalid memo.

    -

    Variants§

    §

    InvalidUtf8(Utf8Error)

    §

    TooLong(usize)

    Trait Implementations§

    Source§

    impl Clone for Error

    Source§

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl PartialEq for Error

    Source§

    fn eq(&self, other: &Error) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for Error

    Source§

    impl StructuralPartialEq for Error

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Variants§

    §

    InvalidUtf8(Utf8Error)

    §

    TooLong(usize)

    Trait Implementations§

    Source§

    impl Clone for Error

    Source§

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    Available on crate feature std only.
    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl PartialEq for Error

    Source§

    fn eq(&self, other: &Error) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for Error

    Source§

    impl StructuralPartialEq for Error

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/memo/enum.Memo.html b/rustdoc/latest/zcash_protocol/memo/enum.Memo.html index 0186de90a..28beee463 100644 --- a/rustdoc/latest/zcash_protocol/memo/enum.Memo.html +++ b/rustdoc/latest/zcash_protocol/memo/enum.Memo.html @@ -1,4 +1,4 @@ -Memo in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Enum Memo

    Source
    pub enum Memo {
    +Memo in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Enum Memo

    Source
    pub enum Memo {
         Empty,
         Text(TextMemo),
         Future(MemoBytes),
    @@ -8,21 +8,21 @@
     
    §

    Text(TextMemo)

    A memo field containing a UTF-8 string.

    §

    Future(MemoBytes)

    Some unknown memo format from ✨the future✨ that we can’t parse.

    §

    Arbitrary(Box<[u8; 511]>)

    A memo field containing arbitrary bytes.

    -

    Implementations§

    Source§

    impl Memo

    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Parses a Memo from its ZIP 302 serialization.

    +

    Implementations§

    Source§

    impl Memo

    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source

    pub fn encode(&self) -> MemoBytes

    Serializes the Memo per ZIP 302.

    -

    Trait Implementations§

    Source§

    impl Clone for Memo

    Source§

    fn clone(&self) -> Memo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Memo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Memo

    Source§

    fn default() -> Memo

    Returns the “default value” for a type. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> Self

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> Self

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl FromStr for Memo

    Source§

    fn from_str(memo: &str) -> Result<Self, Self::Err>

    Returns a Memo containing the given string, or an error if the string is too long.

    -
    Source§

    type Err = Error

    The associated error which can be returned from parsing.
    Source§

    impl PartialEq for Memo

    Source§

    fn eq(&self, rhs: &Memo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from(bytes: &MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    +
    Source

    pub fn encode(&self) -> MemoBytes

    Serializes the Memo per ZIP 302.

    +

    Trait Implementations§

    Source§

    impl Clone for Memo

    Source§

    fn clone(&self) -> Memo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Memo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Memo

    Source§

    fn default() -> Memo

    Returns the “default value” for a type. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> Self

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> Self

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl FromStr for Memo

    Source§

    fn from_str(memo: &str) -> Result<Self, Self::Err>

    Returns a Memo containing the given string, or an error if the string is too long.

    +
    Source§

    type Err = Error

    The associated error which can be returned from parsing.
    Source§

    impl PartialEq for Memo

    Source§

    fn eq(&self, rhs: &Memo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from(bytes: &MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    fn try_from(bytes: MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    +
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    fn try_from(bytes: MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Auto Trait Implementations§

    §

    impl Freeze for Memo

    §

    impl RefUnwindSafe for Memo

    §

    impl Send for Memo

    §

    impl Sync for Memo

    §

    impl Unpin for Memo

    §

    impl UnwindSafe for Memo

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Auto Trait Implementations§

    §

    impl Freeze for Memo

    §

    impl RefUnwindSafe for Memo

    §

    impl Send for Memo

    §

    impl Sync for Memo

    §

    impl Unpin for Memo

    §

    impl UnwindSafe for Memo

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/memo/index.html b/rustdoc/latest/zcash_protocol/memo/index.html index a994e083a..536f68f16 100644 --- a/rustdoc/latest/zcash_protocol/memo/index.html +++ b/rustdoc/latest/zcash_protocol/memo/index.html @@ -1,2 +1,2 @@ -zcash_protocol::memo - Rust
    zcash_protocol

    Module memo

    Source
    Expand description

    Structs for handling encrypted memos.

    +zcash_protocol::memo - Rust
    zcash_protocol

    Module memo

    Source
    Expand description

    Structs for handling encrypted memos.

    Structs§

    • The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.
    • Type-safe wrapper around String to enforce memo length requirements.

    Enums§

    • Errors that may result from attempting to construct an invalid memo.
    • An unencrypted memo received alongside a shielded note in a Zcash transaction.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/memo/struct.MemoBytes.html b/rustdoc/latest/zcash_protocol/memo/struct.MemoBytes.html index 2d541615e..b18ec87da 100644 --- a/rustdoc/latest/zcash_protocol/memo/struct.MemoBytes.html +++ b/rustdoc/latest/zcash_protocol/memo/struct.MemoBytes.html @@ -1,30 +1,30 @@ -MemoBytes in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Struct MemoBytes

    Source
    pub struct MemoBytes(/* private fields */);
    Expand description

    The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.

    -

    Implementations§

    Source§

    impl MemoBytes

    Source

    pub fn empty() -> Self

    Creates a MemoBytes indicating that no memo is present.

    -
    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Creates a MemoBytes from a slice, exactly as provided.

    +MemoBytes in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Struct MemoBytes

    Source
    pub struct MemoBytes(/* private fields */);
    Expand description

    The unencrypted memo bytes received alongside a shielded note in a Zcash transaction.

    +

    Implementations§

    Source§

    impl MemoBytes

    Source

    pub fn empty() -> Self

    Creates a MemoBytes indicating that no memo is present.

    +
    Source

    pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Creates a MemoBytes from a slice, exactly as provided.

    Returns an error if the provided slice is longer than 512 bytes. Slices shorter than 512 bytes are padded with null bytes.

    Note that passing an empty slice to this API (or an all-zeroes slice) will result in a memo representing an empty string. What you almost certainly want in this case is MemoBytes::empty, which uses a specific encoding to indicate that no memo is present.

    -
    Source

    pub fn as_array(&self) -> &[u8; 512]

    Returns the raw byte array containing the memo bytes, including null padding.

    -
    Source

    pub fn as_slice(&self) -> &[u8]

    Returns a slice of the raw bytes, excluding null padding.

    -

    Trait Implementations§

    Source§

    impl Clone for MemoBytes

    Source§

    fn clone(&self) -> MemoBytes

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MemoBytes

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> Self

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> Self

    Serializes the Memo per ZIP 302.

    -
    Source§

    impl Ord for MemoBytes

    Source§

    fn cmp(&self, rhs: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Source

    pub fn as_array(&self) -> &[u8; 512]

    Returns the raw byte array containing the memo bytes, including null padding.

    +
    Source

    pub fn as_slice(&self) -> &[u8]

    Returns a slice of the raw bytes, excluding null padding.

    +

    Trait Implementations§

    Source§

    impl Clone for MemoBytes

    Source§

    fn clone(&self) -> MemoBytes

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MemoBytes

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<&Memo> for MemoBytes

    Source§

    fn from(memo: &Memo) -> Self

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl From<Memo> for MemoBytes

    Source§

    fn from(memo: Memo) -> Self

    Serializes the Memo per ZIP 302.

    +
    Source§

    impl Ord for MemoBytes

    Source§

    fn cmp(&self, rhs: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MemoBytes

    Source§

    fn eq(&self, rhs: &MemoBytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MemoBytes

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for MemoBytes

    Source§

    fn eq(&self, rhs: &MemoBytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MemoBytes

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from(bytes: &MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    +the >= operator. Read more
    Source§

    impl TryFrom<&MemoBytes> for Memo

    Source§

    fn try_from(bytes: &MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    fn try_from(bytes: MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    +
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl TryFrom<MemoBytes> for Memo

    Source§

    fn try_from(bytes: MemoBytes) -> Result<Self, Self::Error>

    Parses a Memo from its ZIP 302 serialization.

    Returns an error if the provided slice does not represent a valid Memo (for example, if the slice is not 512 bytes, or the encoded Memo is non-canonical).

    -
    Source§

    type Error = Error

    The type returned in the event of a conversion error.
    Source§

    impl Eq for MemoBytes

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    type Error = Error

    The type returned in the event of a conversion error.

    Source§

    impl Eq for MemoBytes

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/memo/struct.TextMemo.html b/rustdoc/latest/zcash_protocol/memo/struct.TextMemo.html index 94f649801..0114e9ffe 100644 --- a/rustdoc/latest/zcash_protocol/memo/struct.TextMemo.html +++ b/rustdoc/latest/zcash_protocol/memo/struct.TextMemo.html @@ -1,4 +1,4 @@ -TextMemo in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Struct TextMemo

    Source
    pub struct TextMemo(/* private fields */);
    Expand description

    Type-safe wrapper around String to enforce memo length requirements.

    +TextMemo in zcash_protocol::memo - Rust
    zcash_protocol::memo

    Struct TextMemo

    Source
    pub struct TextMemo(/* private fields */);
    Expand description

    Type-safe wrapper around String to enforce memo length requirements.

    Methods from Deref<Target = str>§

    1.0.0 · Source

    pub fn len(&self) -> usize

    Returns the length of self.

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    @@ -1243,8 +1243,8 @@
    §Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    Source§

    impl Clone for TextMemo

    Source§

    fn clone(&self) -> TextMemo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Deref for TextMemo

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &str

    Dereferences the value.
    Source§

    impl From<TextMemo> for String

    Source§

    fn from(memo: TextMemo) -> String

    Converts to this type from the input type.
    Source§

    impl PartialEq for TextMemo

    Source§

    fn eq(&self, other: &TextMemo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for TextMemo

    Source§

    impl StructuralPartialEq for TextMemo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Clone for TextMemo

    Source§

    fn clone(&self) -> TextMemo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Deref for TextMemo

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &str

    Dereferences the value.
    Source§

    impl From<TextMemo> for String

    Source§

    fn from(memo: TextMemo) -> String

    Converts to this type from the input type.
    Source§

    impl PartialEq for TextMemo

    Source§

    fn eq(&self, other: &TextMemo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for TextMemo

    Source§

    impl StructuralPartialEq for TextMemo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/value/constant.COIN.html b/rustdoc/latest/zcash_protocol/value/constant.COIN.html index 915cb1388..430a1f211 100644 --- a/rustdoc/latest/zcash_protocol/value/constant.COIN.html +++ b/rustdoc/latest/zcash_protocol/value/constant.COIN.html @@ -1 +1 @@ -COIN in zcash_protocol::value - Rust
    zcash_protocol::value

    Constant COIN

    Source
    pub const COIN: u64 = 1_0000_0000;
    \ No newline at end of file +COIN in zcash_protocol::value - Rust
    zcash_protocol::value

    Constant COIN

    Source
    pub const COIN: u64 = 1_0000_0000;
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/constant.MAX_BALANCE.html b/rustdoc/latest/zcash_protocol/value/constant.MAX_BALANCE.html index 81c5d5e48..4f43f9995 100644 --- a/rustdoc/latest/zcash_protocol/value/constant.MAX_BALANCE.html +++ b/rustdoc/latest/zcash_protocol/value/constant.MAX_BALANCE.html @@ -1 +1 @@ -MAX_BALANCE in zcash_protocol::value - Rust
    zcash_protocol::value

    Constant MAX_BALANCE

    Source
    pub const MAX_BALANCE: i64 = _; // 2_100_000_000_000_000i64
    \ No newline at end of file +MAX_BALANCE in zcash_protocol::value - Rust
    zcash_protocol::value

    Constant MAX_BALANCE

    Source
    pub const MAX_BALANCE: i64 = _; // 2_100_000_000_000_000i64
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/constant.MAX_MONEY.html b/rustdoc/latest/zcash_protocol/value/constant.MAX_MONEY.html index cdaf78456..331a4ede7 100644 --- a/rustdoc/latest/zcash_protocol/value/constant.MAX_MONEY.html +++ b/rustdoc/latest/zcash_protocol/value/constant.MAX_MONEY.html @@ -1 +1 @@ -MAX_MONEY in zcash_protocol::value - Rust
    zcash_protocol::value

    Constant MAX_MONEY

    Source
    pub const MAX_MONEY: u64 = _; // 2_100_000_000_000_000u64
    \ No newline at end of file +MAX_MONEY in zcash_protocol::value - Rust
    zcash_protocol::value

    Constant MAX_MONEY

    Source
    pub const MAX_MONEY: u64 = _; // 2_100_000_000_000_000u64
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/enum.BalanceError.html b/rustdoc/latest/zcash_protocol/value/enum.BalanceError.html index ce3659b3c..06d8f2efb 100644 --- a/rustdoc/latest/zcash_protocol/value/enum.BalanceError.html +++ b/rustdoc/latest/zcash_protocol/value/enum.BalanceError.html @@ -1,10 +1,10 @@ -BalanceError in zcash_protocol::value - Rust
    zcash_protocol::value

    Enum BalanceError

    Source
    pub enum BalanceError {
    +BalanceError in zcash_protocol::value - Rust
    zcash_protocol::value

    Enum BalanceError

    Source
    pub enum BalanceError {
         Overflow,
         Underflow,
     }
    Expand description

    A type for balance violations in amount addition and subtraction (overflow and underflow of allowed ranges)

    -

    Variants§

    §

    Overflow

    §

    Underflow

    Trait Implementations§

    Source§

    impl Clone for BalanceError

    Source§

    fn clone(&self) -> BalanceError

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for BalanceError

    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<Infallible> for BalanceError

    Source§

    fn from(_value: Infallible) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for BalanceError

    Source§

    fn eq(&self, other: &BalanceError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for BalanceError

    Source§

    impl Eq for BalanceError

    Source§

    impl StructuralPartialEq for BalanceError

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Variants§

    §

    Overflow

    §

    Underflow

    Trait Implementations§

    Source§

    impl Clone for BalanceError

    Source§

    fn clone(&self) -> BalanceError

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for BalanceError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for BalanceError

    Available on crate feature std only.
    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<Infallible> for BalanceError

    Source§

    fn from(_value: Infallible) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for BalanceError

    Source§

    fn eq(&self, other: &BalanceError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Copy for BalanceError

    Source§

    impl Eq for BalanceError

    Source§

    impl StructuralPartialEq for BalanceError

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/value/index.html b/rustdoc/latest/zcash_protocol/value/index.html index 94de03cd6..0c66d53db 100644 --- a/rustdoc/latest/zcash_protocol/value/index.html +++ b/rustdoc/latest/zcash_protocol/value/index.html @@ -1,2 +1,2 @@ -zcash_protocol::value - Rust
    zcash_protocol

    Module value

    Source

    Modules§

    Structs§

    • A struct that provides both the quotient and remainder of a division operation.
    • A type-safe representation of a Zcash value delta, in zatoshis.
    • A type-safe representation of some nonnegative amount of Zcash.

    Enums§

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for ZatBalance

    Source§

    fn eq(&self, other: &ZatBalance) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ZatBalance

    Source§

    fn partial_cmp(&self, other: &ZatBalance) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub<ZatBalance> for Option<ZatBalance>

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl Sub for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl<'a> Sum<&'a ZatBalance> for Option<ZatBalance>

    Source§

    fn sum<I: Iterator<Item = &'a ZatBalance>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” -the items.
    Source§

    impl Sum<ZatBalance> for Option<ZatBalance>

    Source§

    fn sum<I: Iterator<Item = ZatBalance>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” -the items.
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: ZatBalance) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<ZatBalance> for u64

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: ZatBalance) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for ZatBalance

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<Self, BalanceError>

    Performs the conversion.
    Source§

    impl Copy for ZatBalance

    Source§

    impl Eq for ZatBalance

    Source§

    impl StructuralPartialEq for ZatBalance

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl Sub<ZatBalance> for Option<ZatBalance>

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl Sub for ZatBalance

    Source§

    type Output = Option<ZatBalance>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: ZatBalance) -> Option<ZatBalance>

    Performs the - operation. Read more
    Source§

    impl<'a> Sum<&'a ZatBalance> for Option<ZatBalance>

    Source§

    fn sum<I: Iterator<Item = &'a ZatBalance>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” +the items.
    Source§

    impl Sum<ZatBalance> for Option<ZatBalance>

    Source§

    fn sum<I: Iterator<Item = ZatBalance>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” +the items.
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: ZatBalance) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<ZatBalance> for u64

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: ZatBalance) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<i64> for ZatBalance

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: i64) -> Result<Self, BalanceError>

    Performs the conversion.
    Source§

    impl Copy for ZatBalance

    Source§

    impl Eq for ZatBalance

    Source§

    impl StructuralPartialEq for ZatBalance

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/value/struct.Zatoshis.html b/rustdoc/latest/zcash_protocol/value/struct.Zatoshis.html index 6c1fa4c0a..55772c1f9 100644 --- a/rustdoc/latest/zcash_protocol/value/struct.Zatoshis.html +++ b/rustdoc/latest/zcash_protocol/value/struct.Zatoshis.html @@ -1,36 +1,36 @@ -Zatoshis in zcash_protocol::value - Rust
    zcash_protocol::value

    Struct Zatoshis

    Source
    pub struct Zatoshis(/* private fields */);
    Expand description

    A type-safe representation of some nonnegative amount of Zcash.

    +Zatoshis in zcash_protocol::value - Rust
    zcash_protocol::value

    Struct Zatoshis

    Source
    pub struct Zatoshis(/* private fields */);
    Expand description

    A type-safe representation of some nonnegative amount of Zcash.

    A Zatoshis can only be constructed from an integer that is within the valid monetary range of {0..MAX_MONEY} (where MAX_MONEY = 21,000,000 × 10⁸ zatoshis).

    -

    Implementations§

    Source§

    impl Zatoshis

    Source

    pub const ZERO: Self = _

    Returns the identity Zatoshis

    -
    Source

    pub fn into_u64(self) -> u64

    Returns this Zatoshis as a u64.

    -
    Source

    pub fn from_u64(amount: u64) -> Result<Self, BalanceError>

    Creates a Zatoshis from a u64.

    +

    Implementations§

    Source§

    impl Zatoshis

    Source

    pub const ZERO: Self = _

    Returns the identity Zatoshis

    +
    Source

    pub fn into_u64(self) -> u64

    Returns this Zatoshis as a u64.

    +
    Source

    pub fn from_u64(amount: u64) -> Result<Self, BalanceError>

    Creates a Zatoshis from a u64.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub const fn const_from_u64(amount: u64) -> Self

    Creates a constant Zatoshis from a u64.

    +
    Source

    pub const fn const_from_u64(amount: u64) -> Self

    Creates a constant Zatoshis from a u64.

    Panics: if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<Self, BalanceError>

    Creates a Zatoshis from an i64.

    +
    Source

    pub fn from_nonnegative_i64(amount: i64) -> Result<Self, BalanceError>

    Creates a Zatoshis from an i64.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<Self, BalanceError>

    Reads an Zatoshis from an unsigned 64-bit little-endian integer.

    +
    Source

    pub fn from_u64_le_bytes(bytes: [u8; 8]) -> Result<Self, BalanceError>

    Reads an Zatoshis from an unsigned 64-bit little-endian integer.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn from_nonnegative_i64_le_bytes( +

    Source

    pub fn from_nonnegative_i64_le_bytes( bytes: [u8; 8], ) -> Result<Self, BalanceError>

    Reads a Zatoshis from a signed integer represented as a two’s complement 64-bit little-endian value.

    Returns an error if the amount is outside the range {0..MAX_MONEY}.

    -
    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns this Zatoshis encoded as a signed two’s complement 64-bit +

    Source

    pub fn to_i64_le_bytes(self) -> [u8; 8]

    Returns this Zatoshis encoded as a signed two’s complement 64-bit little-endian value.

    -
    Source

    pub fn is_zero(&self) -> bool

    Returns whether or not this Zatoshis is the zero value.

    -
    Source

    pub fn is_positive(&self) -> bool

    Returns whether or not this Zatoshis is positive.

    -
    Source

    pub fn div_with_remainder(&self, divisor: NonZeroU64) -> QuotRem<Zatoshis>

    Divides this Zatoshis value by the given divisor and returns the quotient and remainder.

    -

    Trait Implementations§

    Source§

    impl Add<Zatoshis> for Option<Zatoshis>

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the + operation. Read more
    Source§

    impl Add for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the + operation. Read more
    Source§

    impl Clone for Zatoshis

    Source§

    fn clone(&self) -> Zatoshis

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Zatoshis

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Div<NonZero<u64>> for Zatoshis

    Source§

    type Output = Zatoshis

    The resulting type after applying the / operator.
    Source§

    fn div(self, rhs: NonZeroU64) -> Zatoshis

    Performs the / operation. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for u64

    Source§

    fn from(n: Zatoshis) -> Self

    Converts to this type from the input type.
    Source§

    impl Mul<u64> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: u64) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Mul<usize> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Ord for Zatoshis

    Source§

    fn cmp(&self, other: &Zatoshis) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    Source

    pub fn is_zero(&self) -> bool

    Returns whether or not this Zatoshis is the zero value.

    +
    Source

    pub fn is_positive(&self) -> bool

    Returns whether or not this Zatoshis is positive.

    +
    Source

    pub fn div_with_remainder(&self, divisor: NonZeroU64) -> QuotRem<Zatoshis>

    Divides this Zatoshis value by the given divisor and returns the quotient and remainder.

    +

    Trait Implementations§

    Source§

    impl Add<Zatoshis> for Option<Zatoshis>

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the + operation. Read more
    Source§

    impl Add for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the + operator.
    Source§

    fn add(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the + operation. Read more
    Source§

    impl Clone for Zatoshis

    Source§

    fn clone(&self) -> Zatoshis

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Zatoshis

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Div<NonZero<u64>> for Zatoshis

    Source§

    type Output = Zatoshis

    The resulting type after applying the / operator.
    Source§

    fn div(self, rhs: NonZeroU64) -> Zatoshis

    Performs the / operation. Read more
    Source§

    impl From<&Zatoshis> for ZatBalance

    Source§

    fn from(n: &Zatoshis) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for ZatBalance

    Source§

    fn from(n: Zatoshis) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Zatoshis> for u64

    Source§

    fn from(n: Zatoshis) -> Self

    Converts to this type from the input type.
    Source§

    impl Mul<u64> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: u64) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Mul<usize> for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the * operator.
    Source§

    fn mul(self, rhs: usize) -> Option<Zatoshis>

    Performs the * operation. Read more
    Source§

    impl Ord for Zatoshis

    Source§

    fn cmp(&self, other: &Zatoshis) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Zatoshis

    Source§

    fn eq(&self, other: &Zatoshis) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Zatoshis

    Source§

    fn partial_cmp(&self, other: &Zatoshis) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Zatoshis

    Source§

    fn eq(&self, other: &Zatoshis) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Zatoshis

    Source§

    fn partial_cmp(&self, other: &Zatoshis) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Sub<Zatoshis> for Option<Zatoshis>

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the - operation. Read more
    Source§

    impl Sub for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the - operation. Read more
    Source§

    impl<'a> Sum<&'a Zatoshis> for Option<Zatoshis>

    Source§

    fn sum<I: Iterator<Item = &'a Zatoshis>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” -the items.
    Source§

    impl Sum<Zatoshis> for Option<Zatoshis>

    Source§

    fn sum<I: Iterator<Item = Zatoshis>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” -the items.
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: ZatBalance) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u64) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Copy for Zatoshis

    Source§

    impl Eq for Zatoshis

    Source§

    impl StructuralPartialEq for Zatoshis

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl Sub<Zatoshis> for Option<Zatoshis>

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the - operation. Read more
    Source§

    impl Sub for Zatoshis

    Source§

    type Output = Option<Zatoshis>

    The resulting type after applying the - operator.
    Source§

    fn sub(self, rhs: Zatoshis) -> Option<Zatoshis>

    Performs the - operation. Read more
    Source§

    impl<'a> Sum<&'a Zatoshis> for Option<Zatoshis>

    Source§

    fn sum<I: Iterator<Item = &'a Zatoshis>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” +the items.
    Source§

    impl Sum<Zatoshis> for Option<Zatoshis>

    Source§

    fn sum<I: Iterator<Item = Zatoshis>>(iter: I) -> Self

    Takes an iterator and generates Self from the elements by “summing up” +the items.
    Source§

    impl TryFrom<ZatBalance> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: ZatBalance) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<u64> for Zatoshis

    Source§

    type Error = BalanceError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: u64) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Copy for Zatoshis

    Source§

    impl Eq for Zatoshis

    Source§

    impl StructuralPartialEq for Zatoshis

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_nonnegative_zat_balance.html b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_nonnegative_zat_balance.html index bfa0814c5..f4f5a5f03 100644 --- a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_nonnegative_zat_balance.html +++ b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_nonnegative_zat_balance.html @@ -1 +1 @@ -arb_nonnegative_zat_balance in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_nonnegative_zat_balance

    Source
    pub fn arb_nonnegative_zat_balance() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_nonnegative_zat_balance in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_nonnegative_zat_balance

    Source
    pub fn arb_nonnegative_zat_balance() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_positive_zat_balance.html b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_positive_zat_balance.html index 1614b3202..abd88e82d 100644 --- a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_positive_zat_balance.html +++ b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_positive_zat_balance.html @@ -1 +1 @@ -arb_positive_zat_balance in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_positive_zat_balance

    Source
    pub fn arb_positive_zat_balance() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_positive_zat_balance in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_positive_zat_balance

    Source
    pub fn arb_positive_zat_balance() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zat_balance.html b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zat_balance.html index 2b29db304..ee206d0e6 100644 --- a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zat_balance.html +++ b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zat_balance.html @@ -1 +1 @@ -arb_zat_balance in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_zat_balance

    Source
    pub fn arb_zat_balance() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_zat_balance in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_zat_balance

    Source
    pub fn arb_zat_balance() -> impl Strategy<Value = ZatBalance>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zatoshis.html b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zatoshis.html index 0995db2ef..03b66588f 100644 --- a/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zatoshis.html +++ b/rustdoc/latest/zcash_protocol/value/testing/fn.arb_zatoshis.html @@ -1 +1 @@ -arb_zatoshis in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_zatoshis

    Source
    pub fn arb_zatoshis() -> impl Strategy<Value = Zatoshis>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_zatoshis in zcash_protocol::value::testing - Rust
    zcash_protocol::value::testing

    Function arb_zatoshis

    Source
    pub fn arb_zatoshis() -> impl Strategy<Value = Zatoshis>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_protocol/value/testing/index.html b/rustdoc/latest/zcash_protocol/value/testing/index.html index 64c27f10b..43b44c00c 100644 --- a/rustdoc/latest/zcash_protocol/value/testing/index.html +++ b/rustdoc/latest/zcash_protocol/value/testing/index.html @@ -1 +1 @@ -zcash_protocol::value::testing - Rust
    zcash_protocol::value

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file +zcash_protocol::value::testing - Rust
    zcash_protocol::value

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file