Struct near_primitives_core::profile::FixedArray[][src]

pub struct FixedArray<T> {
    pub data: Rc<RefCell<InternalProfileData<T>>>,
}

Fields

data: Rc<RefCell<InternalProfileData<T>>>

Implementations

impl FixedArray<u64>[src]

pub fn new() -> Self[src]

pub fn all_gas(&self) -> Gas[src]

pub fn add_action_cost(&self, action: ActionCosts, value: u64)[src]

pub fn get_action_cost(&self, action: usize) -> u64[src]

pub fn get_ext_cost(&self, ext: usize) -> u64[src]

pub fn add_ext_cost(&self, ext: ExtCosts, value: u64)[src]

pub fn host_gas(&self) -> u64[src]

pub fn action_gas(&self) -> u64[src]

pub fn wasm_gas(&self) -> u64[src]

pub fn unaccounted_gas(&self) -> u64[src]

pub fn set_burnt_gas(&self, burnt_gas: u64)[src]

Trait Implementations

impl<T> Clone for FixedArray<T>[src]

impl<T: Send> Send for FixedArray<T>[src]

impl<T: Sync> Sync for FixedArray<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for FixedArray<T>[src]

impl<T> Unpin for FixedArray<T>[src]

impl<T> !UnwindSafe for FixedArray<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.