pub struct Allocator {
blocks: u32,
pins: u32,
routes: u32,
route_labels: u32,
texts: u32,
areas: u32,
images: u32,
}Expand description
Per-kind high-water marks: the largest id of each kind the document has ever held, minted or folded. Never stored — a loaded document derives them from its own content — so there is no durable counter to run backwards and no invariant for the fold to police.
Fields§
§blocks: u32§pins: u32§routes: u32§route_labels: u32§texts: u32§areas: u32§images: u32Implementations§
Trait Implementations§
impl Copy for Allocator
impl Eq for Allocator
impl StructuralPartialEq for Allocator
Auto Trait Implementations§
impl Freeze for Allocator
impl RefUnwindSafe for Allocator
impl Send for Allocator
impl Sync for Allocator
impl Unpin for Allocator
impl UnsafeUnpin for Allocator
impl UnwindSafe for Allocator
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