Struct gcore::ReservationId
source · pub struct ReservationId(pub [u8; 32]);
Expand description
Reservation identifier.
This identifier is used to get reserved gas or unreserve it.
See exec::reserve_gas
.
Tuple Fields§
§0: [u8; 32]
Implementations§
Trait Implementations§
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 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§fn eq(&self, other: &ReservationId) -> bool
fn eq(&self, other: &ReservationId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReservationId
impl PartialOrd for ReservationId
source§fn partial_cmp(&self, other: &ReservationId) -> Option<Ordering>
fn partial_cmp(&self, other: &ReservationId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ReservationId
impl Eq for ReservationId
impl StructuralEq for ReservationId
impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
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> 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