Trait RepeatingGroup

Source
pub trait RepeatingGroup: Sized {
    type Entry;

    // Required methods
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn get(&self, i: usize) -> Option<Self::Entry>;

    // Provided method
    fn entries(&self) -> GroupEntries<'_, Self>  { ... }
}
Expand description

Provides access to entries within a FIX repeating group.

Required Associated Types§

Source

type Entry

The type of entries in this FIX repeating group. Must implement FieldMap.

Required Methods§

Source

fn len(&self) -> usize

Returns the number of FIX group entries in self.

Source

fn is_empty(&self) -> bool

Source

fn get(&self, i: usize) -> Option<Self::Entry>

Returns the i -th entry in self, if present.

Provided Methods§

Source

fn entries(&self) -> GroupEntries<'_, Self>

Creates and returns an Iterator over the entries in self. Iteration MUST be done in sequential order, i.e. in which they appear in the original FIX message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T> RepeatingGroup for MessageGroup<'a, T>
where T: AsRef<[u8]> + Clone,

Source§

type Entry = Message<'a, T>