Trait Wraps

Source
pub trait Wraps<T>: From<T> {
    // Required method
    fn inner(&self) -> &T;
}
Expand description

Most WASM types are wrapping a Rust type one-on-one. This trait helps to enforce a convention so that WASM types can easily peek under the hood of other such wrapped WASM types.

See also WrapsMut<T>

Required Methods§

Source

fn inner(&self) -> &T

Converts a reference to a WASM type to a reference to the underlying Rust type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Wraps<UserOperation> for JsUserOperation

Source§

impl Wraps<Principal> for JsPrincipal

Source§

impl Wraps<MKeyId> for JsMKeyId

Source§

impl Wraps<MPublicKey> for JsMPublicKey

Source§

impl Wraps<MSignature> for JsMSignature

Source§

impl Wraps<MPrivateKey> for JsMPrivateKey

Source§

impl Wraps<CoeusAsset> for JsCoeusAsset

Source§

impl Wraps<DomainName> for JsDomainName

Source§

impl Wraps<SubtreePolicies> for JsSubtreePolicies

Source§

impl Wraps<Price> for JsPrice

Source§

impl Wraps<NoncedBundle> for JsNoncedBundle

Source§

impl Wraps<SignedBundle> for JsSignedBundle

Source§

impl Wraps<Private> for JsHydraPrivate

Source§

impl Wraps<Public> for JsHydraPublic

Source§

impl Wraps<Parameters> for JsHydraParameters

Source§

impl Wraps<Bip32Node<Secp256k1>> for JsBip32Node

Source§

impl Wraps<Bip32PublicNode<Secp256k1>> for JsBip32PublicNode

Source§

impl Wraps<Bip39Phrase> for JsBip39Phrase

Source§

impl Wraps<Bip44Account<Secp256k1>> for JsBip44Account

Source§

impl Wraps<Bip44Coin<Secp256k1>> for JsBip44Coin

Source§

impl Wraps<Bip44Key<Secp256k1>> for JsBip44Key

Source§

impl Wraps<Bip44PublicAccount<Secp256k1>> for JsBip44PublicAccount

Source§

impl Wraps<Bip44PublicKey<Secp256k1>> for JsBip44PublicKey

Source§

impl Wraps<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount

Source§

impl Wraps<Bip44SubAccount<Secp256k1>> for JsBip44SubAccount

Source§

impl Wraps<MorpheusKind> for JsMorpheusKind

Source§

impl Wraps<MorpheusPrivateKey> for JsMorpheusPrivateKey

Source§

impl Wraps<MorpheusPublicKey> for JsMorpheusPublicKey

Source§

impl Wraps<MorpheusRoot> for JsMorpheusRoot

Source§

impl Wraps<SecpKeyId> for JsSecpKeyId

Source§

impl Wraps<SecpPublicKey> for JsSecpPublicKey

Source§

impl Wraps<SecpSignature> for JsSecpSignature

Source§

impl Wraps<SecpPrivateKey> for JsHydraSigner

Source§

impl Wraps<SecpPrivateKey> for JsSecpPrivateKey

Source§

impl Wraps<Seed> for JsSeed

Source§

impl Wraps<Signed<Value>> for JsSignedJson

Source§

impl Wraps<Signed<Box<[u8]>>> for JsSignedBytes

Source§

impl Wraps<Did> for JsDid

Source§

impl Wraps<ValidationIssue> for JsValidationIssue

Source§

impl Wraps<ValidationResult> for JsValidationResult

Source§

impl Wraps<SignableOperationAttempt> for JsMorpheusSignableOperation

Source§

impl Wraps<SignedOperation> for JsMorpheusSignedOperation

Source§

impl Wraps<Private> for JsMorpheusPrivate

Source§

impl Wraps<PrivateKind> for JsMorpheusPrivateKind

Source§

impl Wraps<Public> for JsMorpheusPublic

Source§

impl Wraps<PublicKind> for JsMorpheusPublicKind

Source§

impl Wraps<BoundPlugin<Plugin, Public, Private>> for JsHydraPlugin

Source§

impl Wraps<BoundPlugin<Plugin, Public, Private>> for JsMorpheusPlugin

Source§

impl Wraps<Vault> for JsVault