pub enum MatchingLayer {
CURRENT,
PARENT,
CLOSEST,
OVERLAY,
ANCESTOR,
CHILD,
DESCENDANT,
SUBTREE,
INDEX(u32),
}Expand description
Method to match a layer relative to the current layer
See https://unpoly.com/layer-option#matching-relative-to-the-current-layer
Variants§
CURRENT
The current layer
PARENT
The layer that opened the current layer
CLOSEST
The current layer or any ancestor, preferring closer layers
OVERLAY
Any overlay
ANCESTOR
Any ancestor layer of the current layer
CHILD
The child layer of the current layer
DESCENDANT
Any descendant of the current layer
SUBTREE
The current layer and its descendants
INDEX(u32)
The layer at the given index, where 0 is the root layer
Trait Implementations§
Source§impl Debug for MatchingLayer
impl Debug for MatchingLayer
Source§impl<'de> Deserialize<'de> for MatchingLayer
impl<'de> Deserialize<'de> for MatchingLayer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MatchingLayer
impl PartialEq for MatchingLayer
Source§impl Serialize for MatchingLayer
impl Serialize for MatchingLayer
impl StructuralPartialEq for MatchingLayer
Auto Trait Implementations§
impl Freeze for MatchingLayer
impl RefUnwindSafe for MatchingLayer
impl Send for MatchingLayer
impl Sync for MatchingLayer
impl Unpin for MatchingLayer
impl UnwindSafe for MatchingLayer
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