pub struct InstanceSignature {
pub class: QualName,
pub head: InstanceHead,
pub context: Vec<Constraint>,
pub module: ModuleName,
pub span: NodeSpan,
}Expand description
What an instance declares that another module can see: everything but its body.
Fields§
§class: QualNameThe class, named by the package and module that declared it.
head: InstanceHead§context: Vec<Constraint>What the instance needs of the head’s variables, each on a variable the head
binds: the constraints written in front of its =>, and, for a derived instance
that writes none, the ones inferred from what the type holds
(What a derived instance requires).
module: ModuleNameThe module that declared the instance. An instance that reaches a module by two routes is recognised as one by it.
span: NodeSpanWhere the head line was written, instance through where, in the declaring
module’s source.
Trait Implementations§
Source§impl Clone for InstanceSignature
impl Clone for InstanceSignature
Source§fn clone(&self) -> InstanceSignature
fn clone(&self) -> InstanceSignature
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 InstanceSignature
impl Debug for InstanceSignature
Source§impl PartialEq for InstanceSignature
impl PartialEq for InstanceSignature
impl StructuralPartialEq for InstanceSignature
Auto Trait Implementations§
impl Freeze for InstanceSignature
impl RefUnwindSafe for InstanceSignature
impl Send for InstanceSignature
impl Sync for InstanceSignature
impl Unpin for InstanceSignature
impl UnsafeUnpin for InstanceSignature
impl UnwindSafe for InstanceSignature
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