Enum stable_mir::ty::PredicateKind
source · pub enum PredicateKind {
Clause(ClauseKind),
ObjectSafe(TraitDef),
SubType(SubtypePredicate),
Coerce(CoercePredicate),
ConstEquate(Const, Const),
Ambiguous,
AliasRelate(TermKind, TermKind, AliasRelationDirection),
}
Variants§
Clause(ClauseKind)
ObjectSafe(TraitDef)
SubType(SubtypePredicate)
Coerce(CoercePredicate)
ConstEquate(Const, Const)
Ambiguous
AliasRelate(TermKind, TermKind, AliasRelationDirection)
Trait Implementations§
source§impl Clone for PredicateKind
impl Clone for PredicateKind
source§fn clone(&self) -> PredicateKind
fn clone(&self) -> PredicateKind
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 PredicateKind
impl Debug for PredicateKind
source§impl PartialEq for PredicateKind
impl PartialEq for PredicateKind
source§fn eq(&self, other: &PredicateKind) -> bool
fn eq(&self, other: &PredicateKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PredicateKind
impl StructuralPartialEq for PredicateKind
Auto Trait Implementations§
impl Freeze for PredicateKind
impl RefUnwindSafe for PredicateKind
impl Send for PredicateKind
impl Sync for PredicateKind
impl Unpin for PredicateKind
impl UnwindSafe for PredicateKind
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
Layout§
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: 168 bytes
Size for each variant:
Clause
: 127 bytesObjectSafe
: 15 bytesSubType
: 23 bytesCoerce
: 23 bytesConstEquate
: 167 bytesAmbiguous
: 0 bytesAliasRelate
: 167 bytes