Struct erg_compiler::hir::KwArg
source · pub struct KwArg {
pub keyword: Token,
pub expr: Expr,
}
Fields§
§keyword: Token
§expr: Expr
Implementations§
Trait Implementations§
source§impl Locational for KwArg
impl Locational for KwArg
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 KwArg
impl NestedDisplay for KwArg
source§impl NoTypeDisplay for KwArg
impl NoTypeDisplay for KwArg
fn to_string_notype(&self) -> String
source§impl PartialEq<KwArg> for KwArg
impl PartialEq<KwArg> for KwArg
impl Eq for KwArg
impl StructuralEq for KwArg
impl StructuralPartialEq for KwArg
Auto Trait Implementations§
impl !RefUnwindSafe for KwArg
impl !Send for KwArg
impl !Sync for KwArg
impl Unpin for KwArg
impl !UnwindSafe for KwArg
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