Enum beam_file::chunk::StandardChunk
source · pub enum StandardChunk {
}
Expand description
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§
Atom(AtomChunk)
Code(CodeChunk)
StrT(StrTChunk)
ImpT(ImpTChunk)
ExpT(ExpTChunk)
LitT(LitTChunk)
LocT(LocTChunk)
FunT(FunTChunk)
Attr(AttrChunk)
CInf(CInfChunk)
Abst(AbstChunk)
Dbgi(DbgiChunk)
Docs(DocsChunk)
Unknown(RawChunk)
Trait Implementations§
source§impl Chunk for StandardChunk
impl Chunk for StandardChunk
source§impl Debug for StandardChunk
impl Debug for StandardChunk
source§impl PartialEq<StandardChunk> for StandardChunk
impl PartialEq<StandardChunk> for StandardChunk
source§fn eq(&self, other: &StandardChunk) -> bool
fn eq(&self, other: &StandardChunk) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StandardChunk
impl StructuralEq for StandardChunk
impl StructuralPartialEq for StandardChunk
Auto Trait Implementations§
impl RefUnwindSafe for StandardChunk
impl Send for StandardChunk
impl Sync for StandardChunk
impl Unpin for StandardChunk
impl UnwindSafe for StandardChunk
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