Segments

Trait Segments 

Source
pub trait Segments {
    // Required methods
    fn data(&self) -> SegmentIter<'_> ;
    fn holes(&self) -> SegmentIter<'_> ;
}
Expand description

An extention trait to filter segments by Hole or Data segments

Required Methods§

Source

fn data(&self) -> SegmentIter<'_>

An interator of only the data segments

Source

fn holes(&self) -> SegmentIter<'_>

An iterator of only the hole segments

Implementations on Foreign Types§

Source§

impl Segments for Vec<Segment>

Source§

fn data(&self) -> SegmentIter<'_>

Source§

fn holes(&self) -> SegmentIter<'_>

Implementors§