pub struct Protected<C> { /* private fields */ }
Expand description
A container of objects, typically either terms or objects containing terms, that are of trait Markable. These store ATermRef<’static> that are protected during garbage collection by being in the container itself.
Implementations§
Source§impl<C: Markable + Send + 'static> Protected<C>
impl<C: Markable + Send + 'static> Protected<C>
Sourcepub fn new(container: C) -> Protected<C>
pub fn new(container: C) -> Protected<C>
Creates a new Protected container from a given container.
Trait Implementations§
Source§impl<C: Ord + PartialEq + PartialOrd + Markable> Ord for Protected<C>
impl<C: Ord + PartialEq + PartialOrd + Markable> Ord for Protected<C>
Source§impl<C: PartialOrd + Markable> PartialOrd for Protected<C>
impl<C: PartialOrd + Markable> PartialOrd for Protected<C>
impl<C: Eq + PartialEq + Markable> Eq for Protected<C>
Auto Trait Implementations§
impl<C> Freeze for Protected<C>
impl<C> !RefUnwindSafe for Protected<C>
impl<C> !Send for Protected<C>
impl<C> Sync for Protected<C>where
C: Send,
impl<C> Unpin for Protected<C>
impl<C> !UnwindSafe for Protected<C>
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