pub trait HasFragments<'a> {
    type Fragment: 'a + Fragment;
    type Fragments: 'a + Iterator<Item = &'a Self::Fragment>;
    fn fragments(self) -> Self::Fragments;
}
Expand description

Accessor to fragments within a block.

This trait has a lifetime parameter and is normally implemented by reference types.

Associated Types

The type representing fragments in this block.

A by-reference iterator over block’s fragments.

Required methods

Returns a by-reference iterator over the fragments in the block.

Implementors