Struct move_model::model::TypeParameter
source · pub struct TypeParameter(pub Symbol, pub AbilityConstraint);
Expand description
Function Environment
Represents a type parameter.
Tuple Fields§
§0: Symbol
§1: AbilityConstraint
Trait Implementations§
source§impl Clone for TypeParameter
impl Clone for TypeParameter
source§fn clone(&self) -> TypeParameter
fn clone(&self) -> TypeParameter
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 TypeParameter
impl Debug for TypeParameter
source§impl Ord for TypeParameter
impl Ord for TypeParameter
source§fn cmp(&self, other: &TypeParameter) -> Ordering
fn cmp(&self, other: &TypeParameter) -> 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<TypeParameter> for TypeParameter
impl PartialEq<TypeParameter> for TypeParameter
source§fn eq(&self, other: &TypeParameter) -> bool
fn eq(&self, other: &TypeParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TypeParameter> for TypeParameter
impl PartialOrd<TypeParameter> for TypeParameter
source§fn partial_cmp(&self, other: &TypeParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeParameter) -> 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 TypeParameter
impl StructuralEq for TypeParameter
impl StructuralPartialEq for TypeParameter
Auto Trait Implementations§
impl RefUnwindSafe for TypeParameter
impl Send for TypeParameter
impl Sync for TypeParameter
impl Unpin for TypeParameter
impl UnwindSafe for TypeParameter
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.