pub struct LayerSet(/* private fields */);Expand description
Which layers of view-state a carrier moves. Layers degrade, never block: a
carrier moves donor.donates() & receiver.receives(), and any layer outside
that intersection is simply dropped.
Implementations§
Source§impl LayerSet
impl LayerSet
pub const NAV: Self
pub const FORM: Self
pub const SESSION: Self
pub const DOM: Self
pub const VISUAL: Self
Sourcepub const fn intersect(self, other: Self) -> Self
pub const fn intersect(self, other: Self) -> Self
Layers in both sets — what a (donor, receiver) pair can actually carry.
Trait Implementations§
impl Copy for LayerSet
impl Eq for LayerSet
impl StructuralPartialEq for LayerSet
Auto Trait Implementations§
impl Freeze for LayerSet
impl RefUnwindSafe for LayerSet
impl Send for LayerSet
impl Sync for LayerSet
impl Unpin for LayerSet
impl UnsafeUnpin for LayerSet
impl UnwindSafe for LayerSet
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