Struct everscale_types::models::message::StdAddr
source · 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 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 StdAddr
impl Ord for StdAddr
source§impl PartialEq<StdAddr> for StdAddr
impl PartialEq<StdAddr> for StdAddr
source§impl PartialOrd<StdAddr> for StdAddr
impl PartialOrd<StdAddr> for StdAddr
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 StdAddr
impl Store for StdAddr
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 StdAddr
impl StructuralEq for StdAddr
impl StructuralPartialEq for StdAddr
Auto Trait Implementations§
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