Struct multiversx_sc_snippets::imports::DebugHandle
source · pub struct DebugHandle { /* private fields */ }
Implementations§
source§impl DebugHandle
impl DebugHandle
pub fn is_on_current_context(&self) -> bool
pub fn is_on_same_context(&self, other: &DebugHandle) -> bool
pub fn assert_current_context(&self)
Trait Implementations§
source§impl Clone for DebugHandle
impl Clone for DebugHandle
source§fn clone(&self) -> DebugHandle
fn clone(&self) -> DebugHandle
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 DebugHandle
impl Debug for DebugHandle
source§impl From<i32> for DebugHandle
impl From<i32> for DebugHandle
source§fn from(handle: i32) -> DebugHandle
fn from(handle: i32) -> DebugHandle
Converts to this type from the input type.
source§impl HandleConstraints for DebugHandle
impl HandleConstraints for DebugHandle
fn new(handle: i32) -> DebugHandle
fn to_be_bytes(&self) -> [u8; 4]
fn get_raw_handle(&self) -> i32
fn get_raw_handle_unchecked(&self) -> i32
fn cast_or_signal_error<E, U>(self) -> Uwhere
E: ErrorApi,
U: TryStaticCast,
source§impl ManagedVecItem for DebugHandle
impl ManagedVecItem for DebugHandle
§type PAYLOAD = <i32 as ManagedVecItem>::PAYLOAD
type PAYLOAD = <i32 as ManagedVecItem>::PAYLOAD
Type managing the underlying binary representation in a ManagedVec..
source§const SKIPS_RESERIALIZATION: bool = true
const SKIPS_RESERIALIZATION: bool = true
If true, then the encoding of the item is identical to the payload,
and no further conversion is necessary
(the underlying buffer can be used as-is during serialization).
False for all managed types, but true for basic types (like
u32
).§type Ref<'a> = DebugHandle
type Ref<'a> = DebugHandle
Reference representation of the ManagedVec item. Read more
source§fn from_byte_reader<Reader>(reader: Reader) -> DebugHandle
fn from_byte_reader<Reader>(reader: Reader) -> DebugHandle
Parses given bytes as a an owned object.
source§unsafe fn from_byte_reader_as_borrow<'a, Reader>(
reader: Reader,
) -> <DebugHandle as ManagedVecItem>::Ref<'a>
unsafe fn from_byte_reader_as_borrow<'a, Reader>( reader: Reader, ) -> <DebugHandle as ManagedVecItem>::Ref<'a>
Parses given bytes as a representation of the object, either owned, or a reference. Read more
fn to_byte_writer<R, Writer>(&self, writer: Writer) -> R
fn payload_size() -> usize
source§impl PartialEq<i32> for DebugHandle
impl PartialEq<i32> for DebugHandle
source§impl PartialEq for DebugHandle
impl PartialEq for DebugHandle
source§fn eq(&self, other: &DebugHandle) -> bool
fn eq(&self, other: &DebugHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryStaticCast for DebugHandle
impl TryStaticCast for DebugHandle
fn type_eq<U>() -> boolwhere
U: TryStaticCast,
fn try_cast<U>(self) -> Option<U>where
U: TryStaticCast,
fn try_cast_ref<U>(&self) -> Option<&U>where
U: TryStaticCast,
Auto Trait Implementations§
impl Freeze for DebugHandle
impl !RefUnwindSafe for DebugHandle
impl Send for DebugHandle
impl Sync for DebugHandle
impl Unpin for DebugHandle
impl !UnwindSafe for DebugHandle
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
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more