pub struct WhenElement<'e> {
pub indexes: &'e [usize],
pub arrays: &'e [Vec<PathStep>],
}Expand description
The element a wildcard rule is visiting, for a gate whose references carry wildcards: the current match’s index
at each wildcard the gate covers, and the governing side’s path through each of the rule’s wildcards. A reference
such as rows[].kind is written against the rule’s from side, so its part through its last wildcard is replaced
by the governing side’s array at the same depth, and it reads the visited element in whichever document governs.
Fields§
§indexes: &'e [usize]The current match’s indexes, outermost first.
arrays: &'e [Vec<PathStep>]The governing side’s path through each of its wildcards, outermost first.
Auto Trait Implementations§
impl<'e> Forget for WhenElement<'e>
impl<'e> Freeze for WhenElement<'e>
impl<'e> Move for WhenElement<'e>
impl<'e> RefUnwindSafe for WhenElement<'e>
impl<'e> Send for WhenElement<'e>
impl<'e> Sync for WhenElement<'e>
impl<'e> Unpin for WhenElement<'e>
impl<'e> UnsafeUnpin for WhenElement<'e>
impl<'e> UnwindSafe for WhenElement<'e>
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