pub struct BeamFile<C> {
pub chunks: Vec<C>,
}
Expand description
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§
§chunks: Vec<C>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for BeamFile<C>
impl<C> RefUnwindSafe for BeamFile<C>where
C: RefUnwindSafe,
impl<C> Send for BeamFile<C>where
C: Send,
impl<C> Sync for BeamFile<C>where
C: Sync,
impl<C> Unpin for BeamFile<C>where
C: Unpin,
impl<C> UnwindSafe for BeamFile<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more