pub struct SetCollector { /* private fields */ }Trait Implementations§
Source§impl BaseCollector for SetCollector
impl BaseCollector for SetCollector
Source§fn insert(&mut self, item: &AnyTuple) -> u64
fn insert(&mut self, item: &AnyTuple) -> u64
Inserts an item into the collector and returns a receipt for undoing the operation.
MODIFIED: Now crate-private as per Step 4 requirements
Source§fn remove(&mut self, _item: &AnyTuple, receipt: u64)
fn remove(&mut self, _item: &AnyTuple, receipt: u64)
Removes a previously inserted item using its receipt.
The original item is passed back to avoid storing data inside the receipt itself.
MODIFIED: Now crate-private as per Step 4 requirements
Source§fn result_as_fact(&self) -> Rc<dyn GreynetFact>
fn result_as_fact(&self) -> Rc<dyn GreynetFact>
Returns the aggregated result as a GreynetFact.
Source§impl Debug for SetCollector
impl Debug for SetCollector
Source§impl Default for SetCollector
impl Default for SetCollector
Source§fn default() -> SetCollector
fn default() -> SetCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetCollector
impl RefUnwindSafe for SetCollector
impl Send for SetCollector
impl Sync for SetCollector
impl Unpin for SetCollector
impl UnsafeUnpin for SetCollector
impl UnwindSafe for SetCollector
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