Struct nyar_wasm::WasiTypeReference
source · pub struct WasiTypeReference {
pub symbol: Identifier,
pub owner: WasiOwnership,
}
Fields§
§symbol: Identifier
§owner: WasiOwnership
Implementations§
source§impl WasiTypeReference
impl WasiTypeReference
pub fn new(symbol: Identifier) -> Self
pub fn owned(symbol: Identifier) -> Self
pub fn borrow(symbol: Identifier) -> Self
Trait Implementations§
source§impl Clone for WasiTypeReference
impl Clone for WasiTypeReference
source§fn clone(&self) -> WasiTypeReference
fn clone(&self) -> WasiTypeReference
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 WasiTypeReference
impl Debug for WasiTypeReference
source§impl Display for WasiTypeReference
impl Display for WasiTypeReference
source§impl From<WasiTypeReference> for WasiType
impl From<WasiTypeReference> for WasiType
source§fn from(value: WasiTypeReference) -> Self
fn from(value: WasiTypeReference) -> Self
Converts to this type from the input type.
source§impl Hash for WasiTypeReference
impl Hash for WasiTypeReference
source§impl Ord for WasiTypeReference
impl Ord for WasiTypeReference
source§fn cmp(&self, other: &WasiTypeReference) -> Ordering
fn cmp(&self, other: &WasiTypeReference) -> 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 WasiTypeReference
impl PartialEq for WasiTypeReference
source§fn eq(&self, other: &WasiTypeReference) -> bool
fn eq(&self, other: &WasiTypeReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WasiTypeReference
impl PartialOrd for WasiTypeReference
source§fn partial_cmp(&self, other: &WasiTypeReference) -> Option<Ordering>
fn partial_cmp(&self, other: &WasiTypeReference) -> 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 WasiTypeReference
impl StructuralPartialEq for WasiTypeReference
Auto Trait Implementations§
impl Freeze for WasiTypeReference
impl RefUnwindSafe for WasiTypeReference
impl Send for WasiTypeReference
impl Sync for WasiTypeReference
impl Unpin for WasiTypeReference
impl UnwindSafe for WasiTypeReference
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.