#[non_exhaustive]pub struct PageLimits {
pub per_file: u64,
pub in_all: u64,
}Expand description
How big the page’s files may be (page_layer). Build it with
PageLimits::new or take the default: a struct
literal doesn’t compile outside this crate, so a new field never breaks a
game (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.per_file: u64The most one file may hold, in bytes of UTF-8.
in_all: u64The most the layer’s files may hold together, in bytes of UTF-8.
Implementations§
Trait Implementations§
Source§impl Clone for PageLimits
impl Clone for PageLimits
Source§fn clone(&self) -> PageLimits
fn clone(&self) -> PageLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PageLimits
Source§impl Debug for PageLimits
impl Debug for PageLimits
Source§impl Default for PageLimits
impl Default for PageLimits
impl Eq for PageLimits
Source§impl PartialEq for PageLimits
impl PartialEq for PageLimits
impl StructuralPartialEq for PageLimits
Auto Trait Implementations§
impl Freeze for PageLimits
impl RefUnwindSafe for PageLimits
impl Send for PageLimits
impl Sync for PageLimits
impl Unpin for PageLimits
impl UnsafeUnpin for PageLimits
impl UnwindSafe for PageLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.