pub struct ThreadTermPool { /* private fields */ }
Implementations§
Source§impl ThreadTermPool
impl ThreadTermPool
pub fn new() -> ThreadTermPool
Sourcepub fn protect(&mut self, term: *const _aterm) -> ATerm
pub fn protect(&mut self, term: *const _aterm) -> ATerm
Protects the given aterm address and returns the term.
Sourcepub fn protect_container(
&mut self,
container: Arc<dyn Markable + Send + Sync>,
) -> usize
pub fn protect_container( &mut self, container: Arc<dyn Markable + Send + Sync>, ) -> usize
Protects the given aterm address and returns the term.
Sourcepub fn drop_container(&mut self, container_root: usize)
pub fn drop_container(&mut self, container_root: usize)
Removes the container from the protection set.
Sourcepub fn is_data_application(&mut self, term: &ATermRef<'_>) -> bool
pub fn is_data_application(&mut self, term: &ATermRef<'_>) -> bool
Returns true iff the given term is a data application.
Trait Implementations§
Source§impl Default for ThreadTermPool
impl Default for ThreadTermPool
Auto Trait Implementations§
impl Freeze for ThreadTermPool
impl !RefUnwindSafe for ThreadTermPool
impl !Send for ThreadTermPool
impl !Sync for ThreadTermPool
impl Unpin for ThreadTermPool
impl !UnwindSafe for ThreadTermPool
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