Struct everscale_types::models::message::Anycast
source · pub struct Anycast {
pub depth: SplitDepth,
pub rewrite_prefix: Vec<u8>,
}Expand description
Anycast prefix info.
anycast_info$_ depth:(#<= 30) { depth >= 1 } rewrite_pfx:(bits depth) = Anycast;
Fields§
§depth: SplitDepthPrefix length in bits.
rewrite_prefix: Vec<u8>Rewrite prefix data.
Implementations§
source§impl Anycast
impl Anycast
sourcepub fn from_slice<C: CellFamily>(
rewrite_prefix: &CellSlice<'_, C>
) -> Option<Self>
pub fn from_slice<C: CellFamily>( rewrite_prefix: &CellSlice<'_, C> ) -> Option<Self>
Constructs anycast info from rewrite prefix.
Trait Implementations§
source§impl<'a, C: CellFamily> Load<'a, C> for Anycast
impl<'a, C: CellFamily> Load<'a, C> for Anycast
source§impl Ord for Anycast
impl Ord for Anycast
source§impl PartialEq<Anycast> for Anycast
impl PartialEq<Anycast> for Anycast
source§impl PartialOrd<Anycast> for Anycast
impl PartialOrd<Anycast> for Anycast
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<C: CellFamily> Store<C> for Anycast
impl<C: CellFamily> Store<C> for Anycast
source§fn store_into(
&self,
builder: &mut CellBuilder<C>,
finalizer: &mut dyn Finalizer<C>
) -> bool
fn store_into( &self, builder: &mut CellBuilder<C>, finalizer: &mut dyn Finalizer<C> ) -> bool
Tries to store itself into the cell builder.