Struct near_primitives_core::profile::FixedArray [−][src]
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]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,