Skip to main content

TupleParticleView

Enum TupleParticleView 

Source
pub enum TupleParticleView<'a> {
    Element {
        element: TupleElementView<'a>,
        occurs: &'a Occurrence,
    },
    Sequence {
        children: Vec<TupleParticleView<'a>>,
        occurs: &'a Occurrence,
    },
    Choice {
        children: Vec<TupleParticleView<'a>>,
        occurs: &'a Occurrence,
    },
    GroupRef {
        name: &'a str,
        occurs: &'a Occurrence,
    },
    GroupDef {
        name: Option<&'a str>,
        particle: Box<TupleParticleView<'a>>,
        occurs: &'a Occurrence,
    },
}
Expand description

A projected tuple content-model particle for display.

Variants§

§

Element

An element particle.

Fields

§element: TupleElementView<'a>

Element-local view information.

§occurs: &'a Occurrence

Occurrence constraints.

§

Sequence

A sequence compositor.

Fields

§children: Vec<TupleParticleView<'a>>

Child particles.

§occurs: &'a Occurrence

Occurrence constraints.

§

Choice

A choice compositor.

Fields

§children: Vec<TupleParticleView<'a>>

Child particles.

§occurs: &'a Occurrence

Occurrence constraints.

§

GroupRef

A group reference.

Fields

§name: &'a str

Referenced group local name.

§occurs: &'a Occurrence

Occurrence constraints.

§

GroupDef

An inline group definition.

Fields

§name: Option<&'a str>

Group name, if present.

§particle: Box<TupleParticleView<'a>>

Wrapped particle.

§occurs: &'a Occurrence

Occurrence constraints.

Trait Implementations§

Source§

impl<'a> Debug for TupleParticleView<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for TupleParticleView<'a>

§

impl<'a> RefUnwindSafe for TupleParticleView<'a>

§

impl<'a> Send for TupleParticleView<'a>

§

impl<'a> Sync for TupleParticleView<'a>

§

impl<'a> Unpin for TupleParticleView<'a>

§

impl<'a> UnsafeUnpin for TupleParticleView<'a>

§

impl<'a> UnwindSafe for TupleParticleView<'a>

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.