[][src]Struct cddl_cat::ast::GrpEnt

pub struct GrpEnt {
    pub occur: Option<Occur>,
    pub val: GrpEntVal,
}

A group entry contains one element of a group.

Each key-value pair in map, each element of an array, or each group (inline or referenced by name) will be stored in a GrpEnt.

CDDL ABNF grammar:

grpent = [occur S] [memberkey S] type
       / [occur S] groupname [genericarg]  ; preempted by above
       / [occur S] "(" S group S ")"

Fields

occur: Option<Occur>val: GrpEntVal

Trait Implementations

impl Debug for GrpEnt[src]

impl PartialEq<GrpEnt> for GrpEnt[src]

impl StructuralPartialEq for GrpEnt[src]

Auto Trait Implementations

impl RefUnwindSafe for GrpEnt

impl Send for GrpEnt

impl Sync for GrpEnt

impl Unpin for GrpEnt

impl UnwindSafe for GrpEnt

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.