pub trait Markable {
// Required methods
fn mark(&self, todo: Todo<'_>);
fn contains_term(&self, term: &ATermRef<'_>) -> bool;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
This trait should be used on all objects and containers related to storing unprotected terms.
Required Methods§
Sourcefn mark(&self, todo: Todo<'_>)
fn mark(&self, todo: Todo<'_>)
Marks all the ATermRefs to prevent them from being garbage collected.
Sourcefn contains_term(&self, term: &ATermRef<'_>) -> bool
fn contains_term(&self, term: &ATermRef<'_>) -> bool
Should return true iff the given term is contained in the object. Used for runtime checks.