pub struct ModuleManifest {
pub name: String,
pub role: ModuleRole,
pub predicates: BTreeSet<String>,
pub held_out: bool,
}Expand description
Module manifest used by diagnostics.
Fields§
§name: StringModule name.
role: ModuleRoleBoundary role.
predicates: BTreeSet<String>Predicates owned by this module.
held_out: boolWhether this module represents held-out data.
Implementations§
Source§impl ModuleManifest
impl ModuleManifest
Sourcepub fn new<I, S>(
name: impl Into<String>,
role: ModuleRole,
predicates: I,
) -> Self
pub fn new<I, S>( name: impl Into<String>, role: ModuleRole, predicates: I, ) -> Self
Construct a module manifest.
Sourcepub fn with_held_out(self, held_out: bool) -> Self
pub fn with_held_out(self, held_out: bool) -> Self
Mark whether the module contains held-out data.
Trait Implementations§
Source§impl Clone for ModuleManifest
impl Clone for ModuleManifest
Source§fn clone(&self) -> ModuleManifest
fn clone(&self) -> ModuleManifest
Returns a duplicate of the value. Read more
1.0.0 · 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 ModuleManifest
impl Debug for ModuleManifest
Source§impl PartialEq for ModuleManifest
impl PartialEq for ModuleManifest
impl Eq for ModuleManifest
impl StructuralPartialEq for ModuleManifest
Auto Trait Implementations§
impl Freeze for ModuleManifest
impl RefUnwindSafe for ModuleManifest
impl Send for ModuleManifest
impl Sync for ModuleManifest
impl Unpin for ModuleManifest
impl UnsafeUnpin for ModuleManifest
impl UnwindSafe for ModuleManifest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more