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 (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 ModuleDeclaration
impl Debug for ModuleDeclaration
impl Eq for ModuleDeclaration
Source§impl PartialEq for ModuleDeclaration
impl PartialEq for ModuleDeclaration
Source§fn eq(&self, other: &ModuleDeclaration) -> bool
fn eq(&self, other: &ModuleDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.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§
impl<T> Allocation for T
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