pub struct WasmCode;Expand description
A blob encoding for WebAssembly bytecode.
This schema is intended for sandboxed helper modules such as value formatters
(see metadata::value_formatter).
Trait Implementations§
Source§impl BlobEncoding for WasmCode
impl BlobEncoding for WasmCode
Source§fn blob_from<T: IntoBlob<Self>>(t: T) -> Blob<Self>
fn blob_from<T: IntoBlob<Self>>(t: T) -> Blob<Self>
Converts a concrete Rust type to a blob with this schema via
IntoBlob.Source§fn to_encoded(blob: Blob<Self>) -> Encoded<Handle<Self>>where
Handle<Self>: InlineEncoding,
fn to_encoded(blob: Blob<Self>) -> Encoded<Handle<Self>>where
Handle<Self>: InlineEncoding,
Lift a
Blob<Self> into the Encoded
sum entity!{} consumes — yields
Encoded::Blob(blob.transmute()). The handle lives inside the
blob; consumers recover it via
Encoded::inline. Read moreSource§impl Encodes<&[u8]> for WasmCode
impl Encodes<&[u8]> for WasmCode
Source§impl Encodes<Bytes> for WasmCode
impl Encodes<Bytes> for WasmCode
Source§impl Encodes<Vec<u8>> for WasmCode
impl Encodes<Vec<u8>> for WasmCode
Source§impl MetaDescribe for WasmCode
impl MetaDescribe for WasmCode
Source§fn id() -> Id
fn id() -> Id
Returns the id of this type. Default: derive from
Self::describe().root(). Impls choose whether the id is
explicit (an entity!{ &id_hex @ … } form inside describe)
or derived (no @, intrinsic id from the facts) — either
way the default reads the root the fragment carries. Read moreAuto Trait Implementations§
impl Freeze for WasmCode
impl RefUnwindSafe for WasmCode
impl Send for WasmCode
impl Sync for WasmCode
impl Unpin for WasmCode
impl UnsafeUnpin for WasmCode
impl UnwindSafe for WasmCode
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> Encodes<&Inline<Handle<T>>> for T
impl<T> Encodes<&Inline<Handle<T>>> for T
Source§impl<S> Encodes<Blob<S>> for S
impl<S> Encodes<Blob<S>> for S
Source§impl<T> Encodes<Inline<Handle<T>>> for T
impl<T> Encodes<Inline<Handle<T>>> for 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 moreSource§impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
Source§fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
Run the conversion.