pub struct Limits {
pub maximum_ids: usize,
}Expand description
Bounds on what a snapshot may hold. A snapshot keeps every ID of its world with a fingerprint, so its memory grows with its IDs.
These bound the snapshot, not loading: a pack’s rows are counted as
they are read, so a pack with too many IDs stops at the first one past
the limit, but a source tree is loaded whole first, within the bounds of
tilewright_source::LoadOptions.
Fields§
§maximum_ids: usizeMost IDs of all kinds one snapshot holds. Building a snapshot of a world with more stops at the first ID past the limit, before it is kept.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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