Struct erg_parser::ast::ConstKeyValue
source · pub struct ConstKeyValue {
pub key: ConstExpr,
pub value: ConstExpr,
}Fields§
§key: ConstExpr§value: ConstExprImplementations§
Trait Implementations§
source§impl Clone for ConstKeyValue
impl Clone for ConstKeyValue
source§fn clone(&self) -> ConstKeyValue
fn clone(&self) -> ConstKeyValue
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 ConstKeyValue
impl Debug for ConstKeyValue
source§impl Display for ConstKeyValue
impl Display for ConstKeyValue
source§impl Hash for ConstKeyValue
impl Hash for ConstKeyValue
source§impl Locational for ConstKeyValue
impl Locational for ConstKeyValue
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 ConstKeyValue
impl NestedDisplay for ConstKeyValue
source§impl PartialEq<ConstKeyValue> for ConstKeyValue
impl PartialEq<ConstKeyValue> for ConstKeyValue
source§fn eq(&self, other: &ConstKeyValue) -> bool
fn eq(&self, other: &ConstKeyValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ConstKeyValue
impl StructuralEq for ConstKeyValue
impl StructuralPartialEq for ConstKeyValue
Auto Trait Implementations§
impl RefUnwindSafe for ConstKeyValue
impl Send for ConstKeyValue
impl Sync for ConstKeyValue
impl Unpin for ConstKeyValue
impl UnwindSafe for ConstKeyValue
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