Struct beam_file::BeamFile [] [src]

pub struct BeamFile<C> {
    pub chunks: Vec<C>,
}

A BEAM File

use beam_file::BeamFile;
use beam_file::chunk::{Chunk, RawChunk};

let beam = BeamFile::<RawChunk>::from_file("tests/testdata/test.beam").unwrap();
assert_eq!(b"Atom", beam.chunks.iter().nth(0).map(|c| c.id()).unwrap());

Fields

Methods

impl<C: Chunk> BeamFile<C>
[src]

Trait Implementations

impl<C: Debug> Debug for BeamFile<C>
[src]

Formats the value using the given formatter.