pub enum Scope {
Everything,
Image(String),
}Expand description
Which images a clear is being asked for.
Two variants rather than an Option<String>, because ADR-0014 v1.6 requires
that “clear this image” and “clear everything” be different arguments — a
caller asking for one must not be able to receive the other by supplying
nothing.
Variants§
Everything
Every cached image, and the unattributed bytes alongside them.
Image(String)
One image, by the reference the index holds it under. Anything a surviving image still references stays.
Implementations§
Trait Implementations§
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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,
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.