pub struct StdAddr {
    pub anycast: Option<Box<Anycast>>,
    pub workchain: i8,
    pub address: HashBytes,
}Expand description
Standard internal address.
Fields§
§anycast: Option<Box<Anycast>>Optional anycast info.
workchain: i8Workchain id (one-byte range).
address: HashBytesAccount id.
Implementations§
Source§impl StdAddr
 
impl StdAddr
Sourcepub const BITS_WITHOUT_ANYCAST: u16 = 267u16
 
pub const BITS_WITHOUT_ANYCAST: u16 = 267u16
The number of data bits that address without anycast occupies.
- 2 bits id (
0b10) - 1 bit Maybe None
 - 8 bits workchain
 - 256 bits address
 
Sourcepub const BITS_MAX: u16 = 302u16
 
pub const BITS_MAX: u16 = 302u16
The maximum number of bits that address with anycast occupies.
Sourcepub const fn new(workchain: i8, address: HashBytes) -> Self
 
pub const fn new(workchain: i8, address: HashBytes) -> Self
Constructs a new standard address without anycast info.
Sourcepub fn from_str_ext(
    s: &str,
    format: StdAddrFormat,
) -> Result<(Self, Base64StdAddrFlags), ParseAddrError>
 
pub fn from_str_ext( s: &str, format: StdAddrFormat, ) -> Result<(Self, Base64StdAddrFlags), ParseAddrError>
Parses a base64-encoded address.
Sourcepub const fn is_masterchain(&self) -> bool
 
pub const fn is_masterchain(&self) -> bool
Returns true if this address is for a masterchain block.
Sourcepub const fn display_base64(&self, bounceable: bool) -> DisplayBase64StdAddr<'_>
 
pub const fn display_base64(&self, bounceable: bool) -> DisplayBase64StdAddr<'_>
Returns a pretty-printer for base64-encoded address.
Sourcepub const fn display_base64_url(
    &self,
    bounceable: bool,
) -> DisplayBase64StdAddr<'_>
 
pub const fn display_base64_url( &self, bounceable: bool, ) -> DisplayBase64StdAddr<'_>
Returns a pretty-printer for URL-safe base64-encoded address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StdAddr
 
impl<'de> Deserialize<'de> for StdAddr
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
    D: Deserializer<'de>,
 
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
    D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromPlainAbi for StdAddr
 
impl FromPlainAbi for StdAddr
Source§fn from_plain_abi(value: PlainAbiValue) -> Result<Self>
 
fn from_plain_abi(value: PlainAbiValue) -> Result<Self>
Constructs self from the plain ABI value.
Source§impl IntoPlainAbi for StdAddr
 
impl IntoPlainAbi for StdAddr
Source§fn as_plain_abi(&self) -> PlainAbiValue
 
fn as_plain_abi(&self) -> PlainAbiValue
Returns a corresponding plain ABI value. Read more
Source§fn into_plain_abi(self) -> PlainAbiValuewhere
    Self: Sized,
 
fn into_plain_abi(self) -> PlainAbiValuewhere
    Self: Sized,
Converts into a corresponding plain ABI value.
Source§impl Ord for StdAddr
 
impl Ord for StdAddr
Source§impl PartialOrd for StdAddr
 
impl PartialOrd for StdAddr
Source§impl Store for StdAddr
 
impl Store for StdAddr
Source§fn store_into(
    &self,
    builder: &mut CellBuilder,
    context: &mut dyn CellContext,
) -> Result<(), Error>
 
fn store_into( &self, builder: &mut CellBuilder, context: &mut dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Source§impl WithPlainAbiType for StdAddr
 
impl WithPlainAbiType for StdAddr
Source§fn plain_abi_type() -> PlainAbiType
 
fn plain_abi_type() -> PlainAbiType
Returns a corresponding plain ABI type.
impl Eq for StdAddr
impl StructuralPartialEq for StdAddr
Auto Trait Implementations§
impl Freeze for StdAddr
impl RefUnwindSafe for StdAddr
impl Send for StdAddr
impl Sync for StdAddr
impl Unpin for StdAddr
impl UnwindSafe for StdAddr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compares 
self to key and returns true if they are equal.