pub struct ImplLogic<'gcx> { /* private fields */ }Expand description
Logic DB about impl blocks. The DB also will include something associated with the impl
blocks such as trait or struct.
Implementations§
Source§impl<'gcx> ImplLogic<'gcx>
impl<'gcx> ImplLogic<'gcx>
pub fn query( &mut self, expr: Expr<Name<Interned<'gcx, str>>>, ) -> ProveCx<'_, 'gcx, GlobalCx<'gcx>>
pub fn clauses(&self) -> ClauseIter<'_, 'gcx, GlobalCx<'gcx>>
pub fn to_prolog(&self) -> String
pub fn insert_clause(&mut self, clause: Clause<Name<Interned<'gcx, str>>>)
pub fn commit(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<'gcx> Freeze for ImplLogic<'gcx>
impl<'gcx> !RefUnwindSafe for ImplLogic<'gcx>
impl<'gcx> !Send for ImplLogic<'gcx>
impl<'gcx> !Sync for ImplLogic<'gcx>
impl<'gcx> Unpin for ImplLogic<'gcx>
impl<'gcx> UnsafeUnpin for ImplLogic<'gcx>
impl<'gcx> !UnwindSafe for ImplLogic<'gcx>
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> 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