Struct semantic_analyzer::ast::Constant
source · pub struct Constant<'a> {
pub name: ConstantName<'a>,
pub constant_type: Type<'a>,
pub constant_value: ConstantExpression<'a>,
}
Fields§
§name: ConstantName<'a>
§constant_type: Type<'a>
§constant_value: ConstantExpression<'a>
Trait Implementations§
source§impl GetLocation for Constant<'_>
impl GetLocation for Constant<'_>
fn location(&self) -> CodeLocation
source§impl<'a> PartialEq<Constant<'a>> for Constant<'a>
impl<'a> PartialEq<Constant<'a>> for Constant<'a>
impl<'a> StructuralPartialEq for Constant<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Constant<'a>
impl<'a> Send for Constant<'a>
impl<'a> Sync for Constant<'a>
impl<'a> Unpin for Constant<'a>
impl<'a> UnwindSafe for Constant<'a>
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