Struct near_vm_logic::profile::FixedArray[][src]

pub struct FixedArray<T> {
    pub data: Rc<RefCell<[T; 60]>>,
}

Fields

data: Rc<RefCell<[T; 60]>>

Implementations

impl FixedArray<u64>[src]

pub fn new() -> FixedArray<u64>[src]

pub fn all_gas(&self) -> u64[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 Debug for FixedArray<u64>[src]

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

impl<T> Sync for FixedArray<T> where
    T: Sync
[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.