Trait elrond_wasm_module_features::FeaturesModule[][src]

pub trait FeaturesModule: ContractBase + Sized where
    Self::BigUint: BigUintApi,
    &'a Self::BigUint: Add<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Sub<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Mul<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Div<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Rem<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: AddAssign<&'b Self::BigUint>,
    Self::BigUint: SubAssign<&'b Self::BigUint>,
    Self::BigUint: MulAssign<&'b Self::BigUint>,
    Self::BigUint: DivAssign<&'b Self::BigUint>,
    Self::BigUint: RemAssign<&'b Self::BigUint>,
    &'a Self::BigUint: BitAnd<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitOr<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitXor<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: BitAndAssign<&'b Self::BigUint>,
    Self::BigUint: BitOrAssign<&'b Self::BigUint>,
    Self::BigUint: BitXorAssign<&'b Self::BigUint>,
    &'a Self::BigUint: Shr<usize, Output = Self::BigUint>,
    &'a Self::BigUint: Shl<usize, Output = Self::BigUint>,
    Self::BigInt: BigIntApi,
    &'a Self::BigInt: Add<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Sub<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Mul<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Div<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Rem<&'b Self::BigInt, Output = Self::BigInt>,
    Self::BigInt: AddAssign<&'b Self::BigInt>,
    Self::BigInt: SubAssign<&'b Self::BigInt>,
    Self::BigInt: MulAssign<&'b Self::BigInt>,
    Self::BigInt: DivAssign<&'b Self::BigInt>,
    Self::BigInt: RemAssign<&'b Self::BigInt>, 
{ fn get_feature_flag(&self, feature_name: FeatureName<'_>) -> u8;
fn set_feature_flag(&self, feature_name: FeatureName<'_>, value: u8); fn check_feature_on(
        &self,
        feature_name: &'static [u8],
        default: bool
    ) -> SCResult<()> { ... }
fn set_feature_flag_endpoint(
        &self,
        feature_name: Vec<u8>,
        value: bool
    ) -> SCResult<()> { ... } }

Required methods

fn get_feature_flag(&self, feature_name: FeatureName<'_>) -> u8[src]

fn set_feature_flag(&self, feature_name: FeatureName<'_>, value: u8)[src]

Provided methods

fn check_feature_on(
    &self,
    feature_name: &'static [u8],
    default: bool
) -> SCResult<()>
[src]

fn set_feature_flag_endpoint(
    &self,
    feature_name: Vec<u8>,
    value: bool
) -> SCResult<()>
[src]

Implementors

impl<C> FeaturesModule for C where
    Self::BigUint: BigUintApi,
    &'a Self::BigUint: Add<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Sub<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Mul<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Div<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Rem<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: AddAssign<&'b Self::BigUint>,
    Self::BigUint: SubAssign<&'b Self::BigUint>,
    Self::BigUint: MulAssign<&'b Self::BigUint>,
    Self::BigUint: DivAssign<&'b Self::BigUint>,
    Self::BigUint: RemAssign<&'b Self::BigUint>,
    &'a Self::BigUint: BitAnd<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitOr<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitXor<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: BitAndAssign<&'b Self::BigUint>,
    Self::BigUint: BitOrAssign<&'b Self::BigUint>,
    Self::BigUint: BitXorAssign<&'b Self::BigUint>,
    &'a Self::BigUint: Shr<usize, Output = Self::BigUint>,
    &'a Self::BigUint: Shl<usize, Output = Self::BigUint>,
    Self::BigInt: BigIntApi,
    &'a Self::BigInt: Add<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Sub<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Mul<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Div<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Rem<&'b Self::BigInt, Output = Self::BigInt>,
    Self::BigInt: AddAssign<&'b Self::BigInt>,
    Self::BigInt: SubAssign<&'b Self::BigInt>,
    Self::BigInt: MulAssign<&'b Self::BigInt>,
    Self::BigInt: DivAssign<&'b Self::BigInt>,
    Self::BigInt: RemAssign<&'b Self::BigInt>,
    C: AutoImpl
[src]

fn get_feature_flag(&self, feature_name: FeatureName<'_>) -> u8[src]

fn set_feature_flag(&self, feature_name: FeatureName<'_>, value: u8)[src]