Enum erg_parser::ast::ConstExpr
source · [−]pub enum ConstExpr {
Lit(Literal),
Erased(Literal),
Accessor(ConstAccessor),
App(ConstApp),
Array(ConstArray),
Set(Set),
Dict(ConstDict),
BinOp(ConstBinOp),
UnaryOp(ConstUnaryOp),
}
Expand description
valid expression for an argument of polymorphic types 多相型の実引数として有効な式
Variants
Lit(Literal)
Erased(Literal)
Accessor(ConstAccessor)
App(ConstApp)
Array(ConstArray)
Set(Set)
Dict(ConstDict)
BinOp(ConstBinOp)
UnaryOp(ConstUnaryOp)
Implementations
sourceimpl ConstExpr
impl ConstExpr
pub fn need_to_be_closed(&self) -> bool
Trait Implementations
sourceimpl Locational for ConstExpr
impl Locational for ConstExpr
sourceimpl NestedDisplay for ConstExpr
impl NestedDisplay for ConstExpr
impl Eq for ConstExpr
impl StructuralEq for ConstExpr
impl StructuralPartialEq for ConstExpr
Auto Trait Implementations
impl RefUnwindSafe for ConstExpr
impl !Send for ConstExpr
impl !Sync for ConstExpr
impl Unpin for ConstExpr
impl UnwindSafe for ConstExpr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more