Struct everscale_types::models::global_version::GlobalCapabilities
source · #[repr(transparent)]pub struct GlobalCapabilities(_);Expand description
A set of enabled capabilities.
See GlobalCapability.
Implementations§
source§impl GlobalCapabilities
impl GlobalCapabilities
sourcepub const fn contains(&self, capability: GlobalCapability) -> bool
pub const fn contains(&self, capability: GlobalCapability) -> bool
Returns true if the specified capability is enabled.
sourcepub const fn into_inner(self) -> u64
pub const fn into_inner(self) -> u64
Converts this wrapper into an underlying type.
sourcepub fn iter(&self) -> GlobalCapabilitiesIter ⓘ
pub fn iter(&self) -> GlobalCapabilitiesIter ⓘ
Gets an iterator over the enabled capabilities.
Trait Implementations§
source§impl Clone for GlobalCapabilities
impl Clone for GlobalCapabilities
source§fn clone(&self) -> GlobalCapabilities
fn clone(&self) -> GlobalCapabilities
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GlobalCapabilities
impl Debug for GlobalCapabilities
source§impl Default for GlobalCapabilities
impl Default for GlobalCapabilities
source§fn default() -> GlobalCapabilities
fn default() -> GlobalCapabilities
Returns the “default value” for a type. Read more
source§impl From<GlobalCapabilities> for u64
impl From<GlobalCapabilities> for u64
source§fn from(value: GlobalCapabilities) -> Self
fn from(value: GlobalCapabilities) -> Self
Converts to this type from the input type.
source§impl From<u64> for GlobalCapabilities
impl From<u64> for GlobalCapabilities
source§impl IntoIterator for GlobalCapabilities
impl IntoIterator for GlobalCapabilities
source§impl<'tlb, C: CellFamily> Load<'tlb, C> for GlobalCapabilities
impl<'tlb, C: CellFamily> Load<'tlb, C> for GlobalCapabilities
source§impl PartialEq<GlobalCapabilities> for GlobalCapabilities
impl PartialEq<GlobalCapabilities> for GlobalCapabilities
source§fn eq(&self, other: &GlobalCapabilities) -> bool
fn eq(&self, other: &GlobalCapabilities) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<C: CellFamily> Store<C> for GlobalCapabilities
impl<C: CellFamily> Store<C> for GlobalCapabilities
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.