psrdada 0.4.0

A rusty wrapper for the psrdada radio astronomy library
1
2
3
4
5
6
7
8
9
10
11
//! A trait that we will use that leverages [generic associated types](https://blog.rust-lang.org/2022/10/28/gats-stabilization.html)
//! to create a dada iterator that garuntees that references to a given buffer only exist when it is safe to do so.

pub trait DadaIterator {
    type Item<'next>
    where
        Self: 'next;

    /// Gets the next block a la [`Iterator::next`].
    fn next(&mut self) -> Option<Self::Item<'_>>;
}