Struct nyar_wasm::WasiModule
source · pub struct WasiModule {
pub package: Option<WasiPublisher>,
pub name: Arc<str>,
pub version: Option<Version>,
}
Expand description
e.g: wasi:random/random@0.2.0
Fields§
§package: Option<WasiPublisher>
§name: Arc<str>
§version: Option<Version>
Implementations§
source§impl WasiModule
impl WasiModule
sourcepub fn with_publisher(self, publisher: WasiPublisher) -> Self
pub fn with_publisher(self, publisher: WasiPublisher) -> Self
Set the publisher for the module
sourcepub fn with_version(self, version: Version) -> Self
pub fn with_version(self, version: Version) -> Self
Set the version for the module
Trait Implementations§
source§impl Clone for WasiModule
impl Clone for WasiModule
source§fn clone(&self) -> WasiModule
fn clone(&self) -> WasiModule
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 WasiModule
impl Debug for WasiModule
source§impl Display for WasiModule
impl Display for WasiModule
source§impl From<&str> for WasiModule
impl From<&str> for WasiModule
source§impl From<String> for WasiModule
impl From<String> for WasiModule
source§impl FromStr for WasiModule
impl FromStr for WasiModule
source§fn from_str(s: &str) -> Result<Self, SyntaxError>
fn from_str(s: &str) -> Result<Self, SyntaxError>
wasi:random/random@0.2.0
wasi:random/random
random
§type Err = SyntaxError
type Err = SyntaxError
The associated error which can be returned from parsing.
source§impl Hash for WasiModule
impl Hash for WasiModule
source§impl Ord for WasiModule
impl Ord for WasiModule
source§fn cmp(&self, other: &WasiModule) -> Ordering
fn cmp(&self, other: &WasiModule) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WasiModule
impl PartialEq for WasiModule
source§fn eq(&self, other: &WasiModule) -> bool
fn eq(&self, other: &WasiModule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WasiModule
impl PartialOrd for WasiModule
source§fn partial_cmp(&self, other: &WasiModule) -> Option<Ordering>
fn partial_cmp(&self, other: &WasiModule) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for WasiModule
impl StructuralPartialEq for WasiModule
Auto Trait Implementations§
impl Freeze for WasiModule
impl RefUnwindSafe for WasiModule
impl Send for WasiModule
impl Sync for WasiModule
impl Unpin for WasiModule
impl UnwindSafe for WasiModule
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.