pub struct StructTypeParameter {
pub constraints: AbilitySet,
pub is_phantom: bool,
}
Expand description
A type parameter used in the declaration of a struct.
Fields§
§constraints: AbilitySet
The type parameter constraints.
is_phantom: bool
Whether the parameter is declared as phantom.
Trait Implementations§
source§impl Arbitrary for StructTypeParameter
impl Arbitrary for StructTypeParameter
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<AbilitySet as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy), fn(_: (AbilitySet, bool)) -> StructTypeParameter>
type Strategy = Map<(<AbilitySet as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy), fn(_: (AbilitySet, bool)) -> StructTypeParameter>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for StructTypeParameter
impl Clone for StructTypeParameter
source§fn clone(&self) -> StructTypeParameter
fn clone(&self) -> StructTypeParameter
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 StructTypeParameter
impl Debug for StructTypeParameter
source§impl Hash for StructTypeParameter
impl Hash for StructTypeParameter
source§impl Ord for StructTypeParameter
impl Ord for StructTypeParameter
source§fn cmp(&self, other: &StructTypeParameter) -> Ordering
fn cmp(&self, other: &StructTypeParameter) -> 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<StructTypeParameter> for StructTypeParameter
impl PartialEq<StructTypeParameter> for StructTypeParameter
source§fn eq(&self, other: &StructTypeParameter) -> bool
fn eq(&self, other: &StructTypeParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StructTypeParameter> for StructTypeParameter
impl PartialOrd<StructTypeParameter> for StructTypeParameter
source§fn partial_cmp(&self, other: &StructTypeParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &StructTypeParameter) -> 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 more