pub struct ConstantVal {
pub name: Name,
pub level_params: Vec<Name>,
pub ty: Expr,
}Expand description
Base constant value shared by all declaration types.
Fields§
§name: NameDeclaration name.
level_params: Vec<Name>Universe level parameters.
ty: ExprType of the constant.
Trait Implementations§
Source§impl Clone for ConstantVal
impl Clone for ConstantVal
Source§fn clone(&self) -> ConstantVal
fn clone(&self) -> ConstantVal
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 ConstantVal
impl Debug for ConstantVal
Source§impl PartialEq for ConstantVal
impl PartialEq for ConstantVal
impl StructuralPartialEq for ConstantVal
Auto Trait Implementations§
impl Freeze for ConstantVal
impl RefUnwindSafe for ConstantVal
impl Send for ConstantVal
impl Sync for ConstantVal
impl Unpin for ConstantVal
impl UnsafeUnpin for ConstantVal
impl UnwindSafe for ConstantVal
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