Struct ItemPredicate
pub struct ItemPredicate<'tcx, Id = DefId> {
pub id: ItemPredicateId<Id>,
pub clause: Clause<'tcx>,
pub span: Span,
}Fields§
§id: ItemPredicateId<Id>§clause: Clause<'tcx>§span: SpanTrait Implementations§
§impl<'tcx, Id> Clone for ItemPredicate<'tcx, Id>where
Id: Clone,
impl<'tcx, Id> Clone for ItemPredicate<'tcx, Id>where
Id: Clone,
§fn clone(&self) -> ItemPredicate<'tcx, Id>
fn clone(&self) -> ItemPredicate<'tcx, Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<'tcx, Id> Debug for ItemPredicate<'tcx, Id>where
Id: Debug,
impl<'tcx, Id> Debug for ItemPredicate<'tcx, Id>where
Id: Debug,
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericPredicate> for ItemPredicate<'tcx, DefId>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericPredicate> for ItemPredicate<'tcx, DefId>
fn sinto(&self, s: &S) -> GenericPredicate
Auto Trait Implementations§
impl<'tcx, Id = DefId> !RefUnwindSafe for ItemPredicate<'tcx, Id>
impl<'tcx, Id = DefId> !UnwindSafe for ItemPredicate<'tcx, Id>
impl<'tcx, Id> DynSend for ItemPredicate<'tcx, Id>where
Id: DynSend,
impl<'tcx, Id> DynSync for ItemPredicate<'tcx, Id>where
Id: DynSync,
impl<'tcx, Id> Freeze for ItemPredicate<'tcx, Id>where
Id: Freeze,
impl<'tcx, Id> Send for ItemPredicate<'tcx, Id>where
Id: Send,
impl<'tcx, Id> Sync for ItemPredicate<'tcx, Id>where
Id: Sync,
impl<'tcx, Id> Unpin for ItemPredicate<'tcx, Id>where
Id: Unpin,
impl<'tcx, Id> UnsafeUnpin for ItemPredicate<'tcx, Id>where
Id: UnsafeUnpin,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more