Struct gprimitives::ReservationId
source · pub struct ReservationId(/* private fields */);Expand description
Reservation identifier.
The identifier is used to reserve and unreserve gas amount for program execution later.
Implementations§
source§impl ReservationId
impl ReservationId
source§impl ReservationId
impl ReservationId
source§impl ReservationId
impl ReservationId
sourcepub fn into_bytes(self) -> [u8; 32]
pub fn into_bytes(self) -> [u8; 32]
Returns ReservationIdas bytes array.
Trait Implementations§
source§impl<__AsMutT: ?Sized> AsMut<__AsMutT> for ReservationId
impl<__AsMutT: ?Sized> AsMut<__AsMutT> for ReservationId
source§fn as_mut(&mut self) -> &mut __AsMutT
fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<__AsRefT: ?Sized> AsRef<__AsRefT> for ReservationId
impl<__AsRefT: ?Sized> AsRef<__AsRefT> for ReservationId
source§impl Clone for ReservationId
impl Clone for ReservationId
source§fn clone(&self) -> ReservationId
fn clone(&self) -> ReservationId
Returns a copy 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 ReservationId
impl Debug for ReservationId
source§impl Default for ReservationId
impl Default for ReservationId
source§fn default() -> ReservationId
fn default() -> ReservationId
Returns the “default value” for a type. Read more
source§impl Display for ReservationId
impl Display for ReservationId
source§impl From<H256> for ReservationId
impl From<H256> for ReservationId
source§impl From<ReservationId> for [u8; 32]
impl From<ReservationId> for [u8; 32]
source§fn from(original: ReservationId) -> Self
fn from(original: ReservationId) -> Self
Converts to this type from the input type.
source§impl From<ReservationId> for H256
impl From<ReservationId> for H256
source§fn from(value: ReservationId) -> Self
fn from(value: ReservationId) -> Self
Converts to this type from the input type.
source§impl From<u64> for ReservationId
impl From<u64> for ReservationId
source§impl FromStr for ReservationId
impl FromStr for ReservationId
source§impl Hash for ReservationId
impl Hash for ReservationId
source§impl Ord for ReservationId
impl Ord for ReservationId
source§fn cmp(&self, other: &ReservationId) -> Ordering
fn cmp(&self, other: &ReservationId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ReservationId
impl PartialEq for ReservationId
source§impl PartialOrd for ReservationId
impl PartialOrd for ReservationId
impl Copy for ReservationId
impl Eq for ReservationId
impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
impl Freeze for ReservationId
impl RefUnwindSafe for ReservationId
impl Send for ReservationId
impl Sync for ReservationId
impl Unpin for ReservationId
impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8]
source§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8]
source§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
source§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)