ParamKindOrd in rustc_ast::ast - Rust (original) (raw)
pub enum ParamKindOrd {
Lifetime,
TypeOrConst,
}
Expand description
Specifies the enforced ordering for generic parameters. In the future, if we wanted to relax this order, we could override PartialEq
andPartialOrd
, to allow the kinds to be unordered.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self
and other
values if one exists. Read more
Tests less than (for self
and other
) and is used by the <
operator. Read more
Tests less than or equal to (for self
and other
) and is used by the<=
operator. Read more
Tests greater than (for self
and other
) and is used by the >
operator. Read more
Tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Lifetime
: 0 bytesTypeOrConst
: 0 bytes