Struct edlang_ast::Constant
source · pub struct Constant {
pub name: Ident,
pub type: Type,
pub value: Expression,
pub span: Span,
}
Fields§
§name: Ident
§type: Type
§value: Expression
§span: Span
Trait Implementations§
source§impl Ord for Constant
impl Ord for Constant
source§impl PartialEq for Constant
impl PartialEq for Constant
source§impl PartialOrd for Constant
impl PartialOrd for Constant
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Constant
impl StructuralEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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