pub struct Rgb21(/* private fields */);
Implementations§
Methods from Deref<Target = ContractIface>§
pub fn contract_id(&self) -> ContractId
Sourcepub fn global(
&self,
name: impl Into<FieldName>,
) -> Result<SmallVec<StrictVal>, ContractError>
pub fn global( &self, name: impl Into<FieldName>, ) -> Result<SmallVec<StrictVal>, ContractError>
§Panics
If data are corrupted and contract schema doesn’t match interface implementations.
pub fn fungible( &self, name: impl Into<FieldName>, filter: &impl OutpointFilter, ) -> Result<LargeVec<FungibleAllocation>, ContractError>
pub fn outpoint( &self, _outpoint: Outpoint, ) -> LargeOrdMap<AssignmentType, LargeVec<TypedState>>
Trait Implementations§
Source§impl AsRef<ContractIface> for Rgb21
impl AsRef<ContractIface> for Rgb21
Source§fn as_ref(&self) -> &ContractIface
fn as_ref(&self) -> &ContractIface
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ContractIface> for Rgb21
impl Borrow<ContractIface> for Rgb21
Source§fn borrow(&self) -> &ContractIface
fn borrow(&self) -> &ContractIface
Immutably borrows from an owned value. Read more
Source§impl From<ContractIface> for Rgb21
impl From<ContractIface> for Rgb21
Source§fn from(iface: ContractIface) -> Self
fn from(iface: ContractIface) -> Self
Converts to this type from the input type.
Source§impl From<Rgb21> for ContractIface
impl From<Rgb21> for ContractIface
Source§impl Wrapper for Rgb21
impl Wrapper for Rgb21
Source§type Inner = ContractIface
type Inner = ContractIface
Inner type wrapped by the current newtype
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
Source§impl WrapperMut for Rgb21
impl WrapperMut for Rgb21
Source§fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl Eq for Rgb21
impl StructuralPartialEq for Rgb21
Auto Trait Implementations§
impl Freeze for Rgb21
impl RefUnwindSafe for Rgb21
impl Send for Rgb21
impl Sync for Rgb21
impl Unpin for Rgb21
impl UnwindSafe for Rgb21
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.