pub struct FixedArray<T> {
pub data: Rc<RefCell<[T; 60]>>,
}Fields§
§data: Rc<RefCell<[T; 60]>>Implementations§
Source§impl FixedArray<u64>
impl FixedArray<u64>
pub fn new() -> FixedArray<u64>
pub fn all_gas(&self) -> u64
pub fn add_action_cost(&self, action: ActionCosts, value: u64)
pub fn get_action_cost(&self, action: usize) -> u64
pub fn get_ext_cost(&self, ext: usize) -> u64
pub fn add_ext_cost(&self, ext: ExtCosts, value: u64)
pub fn host_gas(&self) -> u64
pub fn action_gas(&self) -> u64
pub fn wasm_gas(&self) -> u64
pub fn unaccounted_gas(&self) -> u64
pub fn set_burnt_gas(&self, burnt_gas: u64)
Trait Implementations§
Source§impl<T> Clone for FixedArray<T>
impl<T> Clone for FixedArray<T>
Source§fn clone(&self) -> FixedArray<T>
fn clone(&self) -> FixedArray<T>
Returns a duplicate 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 FixedArray<u64>
impl Debug for FixedArray<u64>
impl<T> Send for FixedArray<T>where
T: Send,
impl<T> Sync for FixedArray<T>where
T: Sync,
Auto Trait Implementations§
impl<T> Freeze for FixedArray<T>
impl<T> !RefUnwindSafe for FixedArray<T>
impl<T> Unpin for FixedArray<T>
impl<T> !UnwindSafe for FixedArray<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more