fn is_flac<R>(mut data: R) -> bool
where
    R: Read + Seek,
{
    let stream_pos = data.seek(SeekFrom::Current(0)).unwrap();
    let is_flac = FlacReader::new(data.by_ref()).is_ok();
    data.seek(SeekFrom::Start(stream_pos)).unwrap();

    return is_flac;
}
/// Returns true if the stream contains Flac data, then resets it to where it was.
Returns true if the stream contains Flac data, then resets it to where it was.
Returns true if the stream contains Flac data then resets it to where it was .
fn is_flac<R>(mut data: R) -> bool
where
    R: Read + Seek,
{
    let stream_pos = data.seek(SeekFrom::Current(0)).unwrap();
    let is_flac = FlacReader::new(data.by_ref()).is_ok();
    data.seek(SeekFrom::Start(stream_pos)).unwrap();
    return is_flac;
}
fn is_flac < R > ( mut data : R ) -> bool where R : Read + Seek , { let stream_pos = data . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) ; let is_flac = FlacReader :: new ( data . by_ref ( ) ) . is_ok ( ) ; data . seek ( SeekFrom :: Start ( stream_pos ) ) . unwrap ( ) ; return is_flac ; }
Returns true if the stream contains Flac data, then resets it to where it was.
Returns true if the stream contains Flac data then resets it to where it was .
data
R
data
R