Trait RepeatAccessor

Source
pub trait RepeatAccessor {
    // Required method
    fn repeat(&self, repeat: NonZeroUsize) -> Option<&Repeat>;
}
Expand description

A trait for accessing repeat on fields, to extend Option<&Field> with short-circuit access

Required Methods§

Source

fn repeat(&self, repeat: NonZeroUsize) -> Option<&Repeat>

Access the component given by 1-based indexing

Implementations on Foreign Types§

Source§

impl RepeatAccessor for Option<&Field>

Source§

fn repeat(&self, repeat: NonZeroUsize) -> Option<&Repeat>

Implementors§