Struct wasmer::sys::Singlepass
pub struct Singlepass {
pub(crate) enable_nan_canonicalization: bool,
pub(crate) middlewares: Vec<Arc<dyn ModuleMiddleware, Global>, Global>,
}
Fields§
§enable_nan_canonicalization: bool
§middlewares: Vec<Arc<dyn ModuleMiddleware, Global>, Global>
Implementations§
§impl Singlepass
impl Singlepass
pub fn new() -> Singlepass
pub fn new() -> Singlepass
Creates a new configuration object with the default configuration specified.
pub fn canonicalize_nans(&mut self, enable: bool) -> &mut Singlepass
Trait Implementations§
§impl Clone for Singlepass
impl Clone for Singlepass
§fn clone(&self) -> Singlepass
fn clone(&self) -> Singlepass
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 more§impl CompilerConfig for Singlepass
impl CompilerConfig for Singlepass
§fn compiler(self: Box<Singlepass, Global>) -> Box<dyn Compiler, Global>
fn compiler(self: Box<Singlepass, Global>) -> Box<dyn Compiler, Global>
Transform it into the compiler
§fn default_features_for_target(&self, _target: &Target) -> Features
fn default_features_for_target(&self, _target: &Target) -> Features
Gets the default features for this compiler in the given target
§fn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware, Global>)
fn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware, Global>)
Pushes a middleware onto the back of the middleware chain.
§fn enable_pic(&mut self)
fn enable_pic(&mut self)
Enable Position Independent Code (PIC). Read more
§fn enable_verifier(&mut self)
fn enable_verifier(&mut self)
Enable compiler IR verification. Read more
§fn canonicalize_nans(&mut self, _enable: bool)
fn canonicalize_nans(&mut self, _enable: bool)
Enable NaN canonicalization. Read more
§impl Debug for Singlepass
impl Debug for Singlepass
§impl Default for Singlepass
impl Default for Singlepass
§fn default() -> Singlepass
fn default() -> Singlepass
Returns the “default value” for a type. Read more
§impl From<Singlepass> for Engine
impl From<Singlepass> for Engine
§fn from(config: Singlepass) -> Engine
fn from(config: Singlepass) -> Engine
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Singlepass
impl Send for Singlepass
impl Sync for Singlepass
impl Unpin for Singlepass
impl !UnwindSafe for Singlepass
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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 more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref