pub trait HasFragments<'a> {
    type Fragment: 'a + Fragment;
    type Fragments: 'a + Iterator<Item = &'a Self::Fragment>;

    // Required method
    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.

Required Associated Types§

source

type Fragment: 'a + Fragment

The type representing fragments in this block.

source

type Fragments: 'a + Iterator<Item = &'a Self::Fragment>

A by-reference iterator over block’s fragments.

Required Methods§

source

fn fragments(self) -> Self::Fragments

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

Implementors§