Skip to main content

Group

Struct Group 

Source
pub struct Group<'a> { /* private fields */ }
Expand description

A read view of one repeating group, with its instance members resolved.

Implementations§

Source§

impl<'a> Group<'a>

Source

pub fn count_field(&self) -> &'a Field

The NumInGroup field, e.g. NoPartyIDs(453).

Source

pub fn delimiter(&self) -> &'a Field

The field every instance starts with.

That is the instance’s first field after expansion, or a nested group’s count field.

Source

pub fn is_required(&self) -> bool

Whether the count field is required in the enclosing scope, combined across every component on the path to it.

Source

pub fn declared_in(&self) -> &'a MemberContext

The message, component, group instance, header or trailer the <group> element sits in.

Source

pub fn component(&self) -> Option<&'a str>

The component this group makes up, when it is that component’s only member.

Source

pub fn members(&self) -> impl Iterator<Item = Member<'a>> + use<'a>

The members of each instance in source order, with requiredness relative to the instance.

Trait Implementations§

Source§

impl<'a> Clone for Group<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for Group<'a>

Source§

impl Debug for Group<'_>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> Eq for Group<'a>

Source§

impl<'a> PartialEq for Group<'a>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for Group<'a>

Auto Trait Implementations§

§

impl<'a> Forget for Group<'a>

§

impl<'a> Freeze for Group<'a>

§

impl<'a> Move for Group<'a>

§

impl<'a> RefUnwindSafe for Group<'a>

§

impl<'a> Send for Group<'a>

§

impl<'a> Sync for Group<'a>

§

impl<'a> Unpin for Group<'a>

§

impl<'a> UnsafeUnpin for Group<'a>

§

impl<'a> UnwindSafe for Group<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.