pub enum ContextPair {
TopIframe,
TopWorker,
IframeWorker,
}Expand description
Pair of contexts to compare.
Variants§
Implementations§
Source§impl ContextPair
impl ContextPair
Sourcepub const fn sides(self) -> (ContextKind, ContextKind)
pub const fn sides(self) -> (ContextKind, ContextKind)
Resolve the ContextKind for side a / b.
Trait Implementations§
Source§impl Clone for ContextPair
impl Clone for ContextPair
Source§fn clone(&self) -> ContextPair
fn clone(&self) -> ContextPair
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 ContextPair
Source§impl Debug for ContextPair
impl Debug for ContextPair
impl Eq for ContextPair
Source§impl Hash for ContextPair
impl Hash for ContextPair
Source§impl PartialEq for ContextPair
impl PartialEq for ContextPair
Source§fn eq(&self, other: &ContextPair) -> bool
fn eq(&self, other: &ContextPair) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContextPair
Auto Trait Implementations§
impl Freeze for ContextPair
impl RefUnwindSafe for ContextPair
impl Send for ContextPair
impl Sync for ContextPair
impl Unpin for ContextPair
impl UnsafeUnpin for ContextPair
impl UnwindSafe for ContextPair
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