Struct holochain_wasmer_host::prelude::Target [−]
pub struct Target { /* fields omitted */ }
Expand description
This is the target that we will use for compiling the WebAssembly ModuleInfo, and then run it.
Implementations
impl Target
impl Target
pub fn new(triple: Triple, cpu_features: EnumSet<CpuFeature>) -> Target
pub fn new(triple: Triple, cpu_features: EnumSet<CpuFeature>) -> Target
Creates a new target given a triple
pub fn cpu_features(&self) -> &EnumSet<CpuFeature>
pub fn cpu_features(&self) -> &EnumSet<CpuFeature>
The triple associated for the target.
Trait Implementations
The default for the Target will use the HOST as the triple
impl MemoryUsage for Target
impl MemoryUsage for Target
pub fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
pub fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
Returns the size of the referenced value in bytes. Read more
impl StructuralEq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations
impl RefUnwindSafe for Target
impl UnwindSafe for Target
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V