pub struct BeamSet { /* private fields */ }Expand description
A canonical, duplicate-free collection of compiled BEAM modules.
Implementations§
Source§impl BeamSet
impl BeamSet
Sourcepub fn new(modules: Vec<BeamModule>) -> Result<Self, PackageError>
pub fn new(modules: Vec<BeamModule>) -> Result<Self, PackageError>
Creates a beam set sorted by logical module name.
Duplicate logical module names are rejected because they would make the canonical order ambiguous.
§Errors
Returns PackageError::MalformedBeamEntry when two modules have the
same logical module name, and PackageError::ReservedModuleName when
a module uses an engine-owned namespace from RESERVED_MODULE_NAMES.
Sourcepub fn iter(&self) -> impl Iterator<Item = &BeamModule>
pub fn iter(&self) -> impl Iterator<Item = &BeamModule>
Iterates modules in canonical logical-name order.
Trait Implementations§
impl Eq for BeamSet
Source§impl IntoIterator for BeamSet
impl IntoIterator for BeamSet
Source§impl<'a> IntoIterator for &'a BeamSet
impl<'a> IntoIterator for &'a BeamSet
impl StructuralPartialEq for BeamSet
Auto Trait Implementations§
impl Freeze for BeamSet
impl RefUnwindSafe for BeamSet
impl Send for BeamSet
impl Sync for BeamSet
impl Unpin for BeamSet
impl UnsafeUnpin for BeamSet
impl UnwindSafe for BeamSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.