pub enum AwkLvalue {
Var(String),
Field(i64),
ArrayElem(String, String),
}Expand description
Identifies the assignable target of sub/gsub so the host can write the
result back to the right place.
Variants§
Var(String)
A scalar variable, by name.
Field(i64)
A field, by index ($0 for the whole record).
ArrayElem(String, String)
An array element: array name + already-joined subscript key.
Trait Implementations§
impl Eq for AwkLvalue
impl StructuralPartialEq for AwkLvalue
Auto Trait Implementations§
impl Freeze for AwkLvalue
impl RefUnwindSafe for AwkLvalue
impl Send for AwkLvalue
impl Sync for AwkLvalue
impl Unpin for AwkLvalue
impl UnsafeUnpin for AwkLvalue
impl UnwindSafe for AwkLvalue
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