Struct everscale_types::models::message::VarAddr
source · 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 Ord for VarAddr
impl Ord for VarAddr
source§impl PartialEq<VarAddr> for VarAddr
impl PartialEq<VarAddr> for VarAddr
source§impl PartialOrd<VarAddr> for VarAddr
impl PartialOrd<VarAddr> for VarAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Store for VarAddr
impl Store for VarAddr
source§fn store_into(
&self,
builder: &mut CellBuilder,
finalizer: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, finalizer: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for VarAddr
impl StructuralEq for VarAddr
impl StructuralPartialEq for VarAddr
Auto Trait Implementations§
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