[][src]Trait floaout::io::read::ReadBubsIn

pub trait ReadBubsIn<T, B>: Read {
    fn read_bubs_details(&mut self, _: &T) -> Result<B>;
}

This trait reads Bubbles in format for times.

Required methods

fn read_bubs_details(&mut self, _: &T) -> Result<B>

This method reads details of Bubbles in format for times.

Examples

use std::io;
use std::fs::File;
use floaout::format::oao::{BubblesInFloaout, Floaout};
use floaout::io::read::{ReadBubsIn, ReadFmt};
 
fn main() -> io::Result<()> {
    let mut reader = io::BufReader::new(File::open("foo.oao")?);
    let oao: Floaout = reader.read_details()?;
 
    // read BubbleInFloaout details for 2 times.
    let bubs_in_oao: BubblesInFloaout = reader.read_bubs_details(&oao)?;
 
    Ok(())
}
Loading content...

Implementations on Foreign Types

impl<R: Read + Seek> ReadBubsIn<Floaout, BubblesInFloaout> for BufReader<R>[src]

Loading content...

Implementors

Loading content...