pub struct TermResolver { /* private fields */ }Expand description
Resolves ids to terms, possibly over several round-trips (nested triple terms).
Implementations§
Source§impl TermResolver
impl TermResolver
pub fn with_constants(constants: HashMap<i64, Term>) -> Self
Sourcepub fn request(&mut self, caps: &Capabilities) -> Option<Request>
pub fn request(&mut self, caps: &Capabilities) -> Option<Request>
The next lookup request, if anything is unresolved.
Sourcepub fn absorb(&mut self, response: Response) -> Result<()>
pub fn absorb(&mut self, response: Response) -> Result<()>
Absorbs the response to Self::request.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Is there nothing left to fetch?
Trait Implementations§
Source§impl Debug for TermResolver
impl Debug for TermResolver
Auto Trait Implementations§
impl Freeze for TermResolver
impl RefUnwindSafe for TermResolver
impl Send for TermResolver
impl Sync for TermResolver
impl Unpin for TermResolver
impl UnsafeUnpin for TermResolver
impl UnwindSafe for TermResolver
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