Enum wasmer_package::package::strictness::Strictness
source · pub enum Strictness {
Lossy,
Strict,
}
Expand description
The strictness to use when working with a
[crate::wasmer_package::Package
].
This can be useful when loading a package that may be edited interactively or if you just want to use a package and don’t care if the manifest is invalid.
Variants§
Implementations§
source§impl Strictness
impl Strictness
pub(crate) fn is_strict(self) -> bool
pub(crate) fn on_error(&self, _path: &Path, error: Error) -> Result<(), Error>
pub(crate) fn outside_base_directory( &self, path: &Path, base_dir: &Path, ) -> Result<(), ManifestError>
pub(crate) fn missing_file( &self, path: &Path, base_dir: &Path, ) -> Result<(), ManifestError>
Trait Implementations§
source§impl Clone for Strictness
impl Clone for Strictness
source§fn clone(&self) -> Strictness
fn clone(&self) -> Strictness
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 moresource§impl Debug for Strictness
impl Debug for Strictness
source§impl Default for Strictness
impl Default for Strictness
source§fn default() -> Strictness
fn default() -> Strictness
Returns the “default value” for a type. Read more
source§impl PartialEq for Strictness
impl PartialEq for Strictness
source§fn eq(&self, other: &Strictness) -> bool
fn eq(&self, other: &Strictness) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Strictness
impl StructuralPartialEq for Strictness
Auto Trait Implementations§
impl Freeze for Strictness
impl RefUnwindSafe for Strictness
impl Send for Strictness
impl Sync for Strictness
impl Unpin for Strictness
impl UnwindSafe for Strictness
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
Returns the layout of the type.