pub struct ProofFragmentStore { /* private fields */ }Expand description
Proof fragment store
Implementations§
Source§impl ProofFragmentStore
impl ProofFragmentStore
Sourcepub fn add(&mut self, fragment: ProofFragment) -> String
pub fn add(&mut self, fragment: ProofFragment) -> String
Add a fragment to the store
Sourcepub fn add_with_cid(&mut self, fragment: ProofFragment, cid: Cid) -> String
pub fn add_with_cid(&mut self, fragment: ProofFragment, cid: Cid) -> String
Add a fragment with CID
Sourcepub fn get(&self, id: &str) -> Option<&ProofFragment>
pub fn get(&self, id: &str) -> Option<&ProofFragment>
Get a fragment by ID
Sourcepub fn get_by_cid(&self, cid: &Cid) -> Option<&ProofFragment>
pub fn get_by_cid(&self, cid: &Cid) -> Option<&ProofFragment>
Get a fragment by CID
Sourcepub fn find_by_conclusion(&self, predicate_name: &str) -> Vec<&ProofFragment>
pub fn find_by_conclusion(&self, predicate_name: &str) -> Vec<&ProofFragment>
Find proofs for a conclusion predicate
Sourcepub fn fragment_ids(&self) -> Vec<&str>
pub fn fragment_ids(&self) -> Vec<&str>
Get all fragment IDs
Sourcepub fn remove(&mut self, id: &str) -> Option<ProofFragment>
pub fn remove(&mut self, id: &str) -> Option<ProofFragment>
Remove a fragment
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProofFragmentStore
impl RefUnwindSafe for ProofFragmentStore
impl Send for ProofFragmentStore
impl Sync for ProofFragmentStore
impl Unpin for ProofFragmentStore
impl UnwindSafe for ProofFragmentStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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