pub struct ReferenceDeclaration {
pub name: String,
pub lean_name: String,
pub kind: ReferenceKind,
pub level_params: Vec<String>,
pub ty: Term,
}Expand description
One declaration as the reference translator reads it.
Fields§
§name: StringThe kernel spelling of the declaration’s name.
lean_name: StringThe Lean spelling (components joined by .).
kind: ReferenceKind§level_params: Vec<String>Universe parameters, in declaration order, in the kernel spelling.
ty: TermTrait Implementations§
Source§impl Clone for ReferenceDeclaration
impl Clone for ReferenceDeclaration
Source§fn clone(&self) -> ReferenceDeclaration
fn clone(&self) -> ReferenceDeclaration
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 ReferenceDeclaration
impl Debug for ReferenceDeclaration
Source§impl PartialEq for ReferenceDeclaration
impl PartialEq for ReferenceDeclaration
impl StructuralPartialEq for ReferenceDeclaration
Auto Trait Implementations§
impl Freeze for ReferenceDeclaration
impl RefUnwindSafe for ReferenceDeclaration
impl Send for ReferenceDeclaration
impl Sync for ReferenceDeclaration
impl Unpin for ReferenceDeclaration
impl UnsafeUnpin for ReferenceDeclaration
impl UnwindSafe for ReferenceDeclaration
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