Struct scrypto::component::component::AnyComponent
source · pub struct AnyComponent(pub(crate) ObjectStubHandle);
Tuple Fields§
§0: ObjectStubHandle
Trait Implementations§
source§impl Clone for AnyComponent
impl Clone for AnyComponent
source§fn clone(&self) -> AnyComponent
fn clone(&self) -> AnyComponent
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 AnyComponent
impl Debug for AnyComponent
source§impl HasStub for AnyComponent
impl HasStub for AnyComponent
type Stub = AnyComponent
source§impl Hash for AnyComponent
impl Hash for AnyComponent
source§impl ObjectStub for AnyComponent
impl ObjectStub for AnyComponent
type AddressType = ComponentAddress
fn new(handle: ObjectStubHandle) -> Self
fn handle(&self) -> &ObjectStubHandle
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T
fn instance_of(&self, blueprint_id: &BlueprintId) -> bool
fn blueprint_id(&self) -> BlueprintId
source§impl PartialEq for AnyComponent
impl PartialEq for AnyComponent
source§fn eq(&self, other: &AnyComponent) -> bool
fn eq(&self, other: &AnyComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeCheckable for AnyComponent
impl TypeCheckable for AnyComponent
impl Copy for AnyComponent
impl Eq for AnyComponent
impl StructuralPartialEq for AnyComponent
Auto Trait Implementations§
impl RefUnwindSafe for AnyComponent
impl Send for AnyComponent
impl Sync for AnyComponent
impl Unpin for AnyComponent
impl UnwindSafe for AnyComponent
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more