pub struct VarAddr {
pub anycast: Option<Box<Anycast>>,
pub address_len: Uint9,
pub workchain: i32,
pub address: Vec<u8>,
}Expand description
Variable-length internal address.
Fields§
§anycast: Option<Box<Anycast>>Optional anycast info.
address_len: Uint9Address length in bits.
workchain: i32Workchain id (full range).
address: Vec<u8>Variable-length address.
Implementations§
Source§impl VarAddr
impl VarAddr
Sourcepub const BITS_MAX: u16 = 590u16
pub const BITS_MAX: u16 = 590u16
The maximum number of bits that address occupies.
- 2 bits id (
0b11) - 1 +
Anycast::BITS_MAXmaybe anycast - 9 bits
address_len - 32 bits workchain
address_lenbits of 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.
Trait Implementations§
Source§impl FromPlainAbi for VarAddr
impl FromPlainAbi for VarAddr
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 VarAddr
impl IntoPlainAbi for VarAddr
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 VarAddr
impl Ord for VarAddr
Source§impl PartialOrd for VarAddr
impl PartialOrd for VarAddr
Source§impl Store for VarAddr
impl Store for VarAddr
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Source§impl WithPlainAbiType for VarAddr
impl WithPlainAbiType for VarAddr
Source§fn plain_abi_type() -> PlainAbiType
fn plain_abi_type() -> PlainAbiType
Returns a corresponding plain ABI type.
impl Eq for VarAddr
impl StructuralPartialEq for VarAddr
Auto Trait Implementations§
impl Freeze for VarAddr
impl RefUnwindSafe for VarAddr
impl Send for VarAddr
impl Sync for VarAddr
impl Unpin for VarAddr
impl UnwindSafe for VarAddr
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.