Enum stable_mir::ty::PredicateKind
source · pub enum PredicateKind {
Clause(ClauseKind),
ObjectSafe(TraitDef),
SubType(SubtypePredicate),
Coerce(CoercePredicate),
ConstEquate(TyConst, TyConst),
Ambiguous,
AliasRelate(TermKind, TermKind, AliasRelationDirection),
}
Variants§
Clause(ClauseKind)
ObjectSafe(TraitDef)
SubType(SubtypePredicate)
Coerce(CoercePredicate)
ConstEquate(TyConst, TyConst)
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§impl Serialize for PredicateKind
impl Serialize for PredicateKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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