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 OccurrenceOccurrence constraints.
Sequence
A sequence compositor.
Fields
§
children: Vec<TupleParticleView<'a>>Child particles.
§
occurs: &'a OccurrenceOccurrence constraints.
Choice
A choice compositor.
Fields
§
children: Vec<TupleParticleView<'a>>Child particles.
§
occurs: &'a OccurrenceOccurrence constraints.
GroupRef
A group reference.
GroupDef
An inline group definition.
Fields
§
particle: Box<TupleParticleView<'a>>Wrapped particle.
§
occurs: &'a OccurrenceOccurrence constraints.
Trait Implementations§
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> 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