Enum stable_mir::ty::PredicateKind
source · pub enum PredicateKind {
Clause(ClauseKind),
ObjectSafe(TraitDef),
ClosureKind(ClosureDef, GenericArgs, ClosureKind),
SubType(SubtypePredicate),
Coerce(CoercePredicate),
ConstEquate(Const, Const),
Ambiguous,
AliasRelate(TermKind, TermKind, AliasRelationDirection),
}
Variants§
Clause(ClauseKind)
ObjectSafe(TraitDef)
ClosureKind(ClosureDef, GenericArgs, ClosureKind)
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 moreAuto Trait Implementations§
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: 152 bytes
Size for each variant:
Clause
: 135 bytesObjectSafe
: 15 bytesClosureKind
: 39 bytesSubType
: 23 bytesCoerce
: 23 bytesConstEquate
: 151 bytesAmbiguous
: 0 bytesAliasRelate
: 151 bytes