pub struct RetainedBudget {
pub bytes: u64,
}Expand description
How many bytes of retained pages a store may hold at once.
Fields§
§bytes: u64The ceiling, in bytes of texture.
Implementations§
Source§impl RetainedBudget
impl RetainedBudget
Sourcepub const MOBILE: Self
pub const MOBILE: Self
A phone’s budget: 32 MiB, three 1080x2400 full-screen pages — what a navigator transition (the outgoing and the incoming page) needs with one to spare.
Sourcepub const MOBILE_LARGE: Self
pub const MOBILE_LARGE: Self
A phone with at least 4 GiB of memory: 64 MiB.
Trait Implementations§
Source§impl Clone for RetainedBudget
impl Clone for RetainedBudget
impl Copy for RetainedBudget
Source§impl Debug for RetainedBudget
impl Debug for RetainedBudget
impl Eq for RetainedBudget
Source§impl PartialEq for RetainedBudget
impl PartialEq for RetainedBudget
impl StructuralPartialEq for RetainedBudget
Auto Trait Implementations§
impl Freeze for RetainedBudget
impl RefUnwindSafe for RetainedBudget
impl Send for RetainedBudget
impl Sync for RetainedBudget
impl Unpin for RetainedBudget
impl UnsafeUnpin for RetainedBudget
impl UnwindSafe for RetainedBudget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.