pub enum PredicateFilter {
All,
SelfOnly,
SelfThatDefines(Ident),
SelfAndAssociatedTypeBounds,
}
Variants§
All
All predicates may be implied by the trait.
SelfOnly
Only traits that reference Self: ..
are implied by the trait.
SelfThatDefines(Ident)
Only traits that reference Self: ..
and define an associated type
with the given ident are implied by the trait.
SelfAndAssociatedTypeBounds
Only traits that reference Self: ..
and their associated type bounds.
For example, given Self: Tr<A: B>
, this would expand to Self: Tr
and <Self as Tr>::A: B
.
Trait Implementations§
source§impl Clone for PredicateFilter
impl Clone for PredicateFilter
source§fn clone(&self) -> PredicateFilter
fn clone(&self) -> PredicateFilter
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 PredicateFilter
impl Debug for PredicateFilter
impl Copy for PredicateFilter
Auto Trait Implementations§
impl RefUnwindSafe for PredicateFilter
impl !Send for PredicateFilter
impl !Sync for PredicateFilter
impl Unpin for PredicateFilter
impl UnwindSafe for PredicateFilter
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: 12 bytes
Size for each variant:
All
: 0 bytesSelfOnly
: 0 bytesSelfThatDefines
: 12 bytesSelfAndAssociatedTypeBounds
: 0 bytes