Struct erg_parser::ast::ConstKwArg
source · pub struct ConstKwArg {
pub keyword: Token,
pub expr: ConstExpr,
}
Fields§
§keyword: Token
§expr: ConstExpr
Implementations§
Trait Implementations§
source§impl Clone for ConstKwArg
impl Clone for ConstKwArg
source§fn clone(&self) -> ConstKwArg
fn clone(&self) -> ConstKwArg
Returns a copy 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 ConstKwArg
impl Debug for ConstKwArg
source§impl Hash for ConstKwArg
impl Hash for ConstKwArg
source§impl Locational for ConstKwArg
impl Locational for ConstKwArg
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NestedDisplay for ConstKwArg
impl NestedDisplay for ConstKwArg
source§impl PartialEq<ConstKwArg> for ConstKwArg
impl PartialEq<ConstKwArg> for ConstKwArg
source§fn eq(&self, other: &ConstKwArg) -> bool
fn eq(&self, other: &ConstKwArg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstKwArg
impl StructuralEq for ConstKwArg
impl StructuralPartialEq for ConstKwArg
Auto Trait Implementations§
impl RefUnwindSafe for ConstKwArg
impl Send for ConstKwArg
impl Sync for ConstKwArg
impl Unpin for ConstKwArg
impl UnwindSafe for ConstKwArg
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