pub struct FieldIndex(pub i32);
Expand description
A field index (e.g., parsed from “$0” -> 0).
Tuple Fields§
§0: i32
Implementations§
Source§impl FieldIndex
impl FieldIndex
Sourcepub fn to_field_reference(self) -> FieldReference
pub fn to_field_reference(self) -> FieldReference
Convert this field index to a FieldReference for use in expressions.
Trait Implementations§
Source§impl Clone for FieldIndex
impl Clone for FieldIndex
Source§fn clone(&self) -> FieldIndex
fn clone(&self) -> FieldIndex
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 FieldIndex
impl Debug for FieldIndex
Source§impl ParsePair for FieldIndex
impl ParsePair for FieldIndex
Source§impl PartialEq for FieldIndex
impl PartialEq for FieldIndex
impl Copy for FieldIndex
impl Eq for FieldIndex
impl StructuralPartialEq for FieldIndex
Auto Trait Implementations§
impl Freeze for FieldIndex
impl RefUnwindSafe for FieldIndex
impl Send for FieldIndex
impl Sync for FieldIndex
impl Unpin for FieldIndex
impl UnwindSafe for FieldIndex
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