pub struct ModuleDeclaration {
pub module: String,
pub predicate: String,
pub kind: ModuleDeclarationKind,
}Expand description
Declaration observed during module-boundary analysis.
Fields§
§module: StringModule containing the declaration.
predicate: StringPredicate named by the declaration.
kind: ModuleDeclarationKindDeclaration kind.
Implementations§
Source§impl ModuleDeclaration
impl ModuleDeclaration
Sourcepub fn candidate_source(
module: impl Into<String>,
predicate: impl Into<String>,
source: CandidateSourceKind,
) -> Self
pub fn candidate_source( module: impl Into<String>, predicate: impl Into<String>, source: CandidateSourceKind, ) -> Self
Candidate provenance declaration.
Trait Implementations§
Source§impl Clone for ModuleDeclaration
impl Clone for ModuleDeclaration
Source§fn clone(&self) -> ModuleDeclaration
fn clone(&self) -> ModuleDeclaration
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 ModuleDeclaration
impl Debug for ModuleDeclaration
Source§impl PartialEq for ModuleDeclaration
impl PartialEq for ModuleDeclaration
impl Eq for ModuleDeclaration
impl StructuralPartialEq for ModuleDeclaration
Auto Trait Implementations§
impl Freeze for ModuleDeclaration
impl RefUnwindSafe for ModuleDeclaration
impl Send for ModuleDeclaration
impl Sync for ModuleDeclaration
impl Unpin for ModuleDeclaration
impl UnsafeUnpin for ModuleDeclaration
impl UnwindSafe for ModuleDeclaration
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