Enum beam_file::chunk::StandardChunk [] [src]

pub enum StandardChunk {
    Atom(AtomChunk),
    Code(CodeChunk),
    StrT(StrTChunk),
    ImpT(ImpTChunk),
    ExpT(ExpTChunk),
    LitT(LitTChunk),
    LocT(LocTChunk),
    FunT(FunTChunk),
    Attr(AttrChunk),
    CInf(CInfChunk),
    Abst(AbstChunk),
    Unknown(RawChunk),
}

A representation of commonly used chunk.

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

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

Variants

Trait Implementations

impl Debug for StandardChunk
[src]

Formats the value using the given formatter.

impl PartialEq for StandardChunk
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for StandardChunk
[src]

impl Chunk for StandardChunk
[src]

Returns the identifier of the chunk.

Reads a chunk which has the identifier id from reader. Read more

Writes the data of the chunk to writer. Read more

Reads a chunk from reader.

Writes the chunk to writer.