pub struct RetainedLayers { /* private fields */ }Expand description
The RetainedRole of every recorded layer the retained-page store
resolved, indexed by layer id; a layer it did not is scheduled like any
other.
Implementations§
Source§impl RetainedLayers
impl RetainedLayers
Sourcepub fn new() -> Self
pub fn new() -> Self
No layer resolved: Schedule::build_retained schedules exactly as
Schedule::build does.
Sourcepub fn set(&mut self, layer: u32, role: RetainedRole)
pub fn set(&mut self, layer: u32, role: RetainedRole)
Give layer layer its role.
Sourcepub fn role(&self, layer: u32) -> Option<RetainedRole>
pub fn role(&self, layer: u32) -> Option<RetainedRole>
Layer layer’s role, or None for an ordinary layer.
Trait Implementations§
Source§impl Clone for RetainedLayers
impl Clone for RetainedLayers
Source§impl Debug for RetainedLayers
impl Debug for RetainedLayers
Source§impl Default for RetainedLayers
impl Default for RetainedLayers
impl Eq for RetainedLayers
Source§impl PartialEq for RetainedLayers
impl PartialEq for RetainedLayers
impl StructuralPartialEq for RetainedLayers
Auto Trait Implementations§
impl Freeze for RetainedLayers
impl RefUnwindSafe for RetainedLayers
impl Send for RetainedLayers
impl Sync for RetainedLayers
impl Unpin for RetainedLayers
impl UnsafeUnpin for RetainedLayers
impl UnwindSafe for RetainedLayers
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.