pub enum SplitModuleIdentifier {
Single(ModuleIdentifier),
Shared(SharedModuleIdentifier),
}Variants§
Single(ModuleIdentifier)
Implementations§
Source§impl SplitModuleIdentifier
impl SplitModuleIdentifier
pub fn as_single(&self) -> Option<&ModuleIdentifier>
pub fn is_main(&self) -> bool
Sourcepub fn is_part_of(&self, other: &SharedModuleIdentifier) -> bool
pub fn is_part_of(&self, other: &SharedModuleIdentifier) -> bool
Check if this split module identifier includes the given module identifier.
pub fn collect_deps( &self, shared_modules: &[SharedModuleIdentifier], ) -> Vec<SharedModuleIdentifier>
Trait Implementations§
Source§impl Clone for SplitModuleIdentifier
impl Clone for SplitModuleIdentifier
Source§fn clone(&self) -> SplitModuleIdentifier
fn clone(&self) -> SplitModuleIdentifier
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 SplitModuleIdentifier
impl Debug for SplitModuleIdentifier
Source§impl Display for SplitModuleIdentifier
impl Display for SplitModuleIdentifier
impl Eq for SplitModuleIdentifier
Source§impl Hash for SplitModuleIdentifier
impl Hash for SplitModuleIdentifier
Source§impl Ord for SplitModuleIdentifier
impl Ord for SplitModuleIdentifier
Source§fn cmp(&self, other: &SplitModuleIdentifier) -> Ordering
fn cmp(&self, other: &SplitModuleIdentifier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SplitModuleIdentifier
impl PartialEq for SplitModuleIdentifier
Source§impl PartialOrd for SplitModuleIdentifier
impl PartialOrd for SplitModuleIdentifier
impl StructuralPartialEq for SplitModuleIdentifier
Auto Trait Implementations§
impl Freeze for SplitModuleIdentifier
impl RefUnwindSafe for SplitModuleIdentifier
impl Send for SplitModuleIdentifier
impl Sync for SplitModuleIdentifier
impl Unpin for SplitModuleIdentifier
impl UnsafeUnpin for SplitModuleIdentifier
impl UnwindSafe for SplitModuleIdentifier
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.