pub struct DeclSummary {
pub name: String,
pub kind: DeclKind,
pub has_body: bool,
pub num_univ_params: usize,
}Expand description
A summary of information about a declaration, useful for diagnostics.
Fields§
§name: StringThe name of the declaration.
kind: DeclKindThe kind of declaration.
has_body: boolWhether the declaration has a body/proof.
num_univ_params: usizeNumber of universe parameters.
Trait Implementations§
Source§impl Clone for DeclSummary
impl Clone for DeclSummary
Source§fn clone(&self) -> DeclSummary
fn clone(&self) -> DeclSummary
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 moreAuto Trait Implementations§
impl Freeze for DeclSummary
impl RefUnwindSafe for DeclSummary
impl Send for DeclSummary
impl Sync for DeclSummary
impl Unpin for DeclSummary
impl UnsafeUnpin for DeclSummary
impl UnwindSafe for DeclSummary
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