Skip to main content

WhenElement

Struct WhenElement 

Source
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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.