pub struct ClosedWorldBundleV0 { /* private fields */ }Expand description
Closed-world bundle constructed from linked module facts.
External callers cannot use field-literal construction:
ⓘ
use omena_parser::ClosedWorldBundleV0;
let _bundle = ClosedWorldBundleV0 {
closure_hash: String::new(),
};Implementations§
Source§impl ClosedWorldBundleV0
impl ClosedWorldBundleV0
pub fn try_from_linked_modules( entrypoints: Vec<ModuleInstanceKeyV0>, linked_modules: Vec<ClosedWorldLinkedModuleV0>, ) -> Result<Self, ClosedWorldBundleBuildErrorV0>
pub fn try_from_linked_modules_with_metadata( entrypoints: Vec<ModuleInstanceKeyV0>, linked_modules: Vec<ClosedWorldLinkedModuleV0>, module_metadata: Vec<ClosedWorldModuleMetadataV0>, ) -> Result<Self, ClosedWorldBundleBuildErrorV0>
Source§impl ClosedWorldBundleV0
impl ClosedWorldBundleV0
pub fn entrypoints(&self) -> &[ModuleInstanceKeyV0]
pub fn linked_modules(&self) -> &[ModuleInstanceKeyV0]
pub fn reachability(&self) -> &ReachabilityIndexV0
pub fn closure_hash(&self) -> &str
pub fn interface_hashes(&self) -> &ClosedWorldInterfaceHashSetV0
pub fn source_precision(&self) -> Option<ClosedWorldSourcePrecisionSummaryV0>
Trait Implementations§
Source§impl Clone for ClosedWorldBundleV0
impl Clone for ClosedWorldBundleV0
Source§fn clone(&self) -> ClosedWorldBundleV0
fn clone(&self) -> ClosedWorldBundleV0
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClosedWorldBundleV0
impl Debug for ClosedWorldBundleV0
impl Eq for ClosedWorldBundleV0
Source§impl PartialEq for ClosedWorldBundleV0
impl PartialEq for ClosedWorldBundleV0
Source§impl Serialize for ClosedWorldBundleV0
impl Serialize for ClosedWorldBundleV0
impl StructuralPartialEq for ClosedWorldBundleV0
Auto Trait Implementations§
impl Freeze for ClosedWorldBundleV0
impl RefUnwindSafe for ClosedWorldBundleV0
impl Send for ClosedWorldBundleV0
impl Sync for ClosedWorldBundleV0
impl Unpin for ClosedWorldBundleV0
impl UnsafeUnpin for ClosedWorldBundleV0
impl UnwindSafe for ClosedWorldBundleV0
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.