pub struct FieldSource {
pub node: SourceNodeId,
pub index: u32,
}Expand description
Format-neutral identity of one field within a source node.
It is separate from SourceSpan so that attributing a field does not
change which runs a backend groups as contiguous source text.
Fields§
§node: SourceNodeId§index: u32Zero-based preorder position among the node’s fields, including nested operands and result fields.
Trait Implementations§
Source§impl Clone for FieldSource
impl Clone for FieldSource
impl Copy for FieldSource
Source§impl Debug for FieldSource
impl Debug for FieldSource
impl Eq for FieldSource
Source§impl Hash for FieldSource
impl Hash for FieldSource
Source§impl PartialEq for FieldSource
impl PartialEq for FieldSource
impl StructuralPartialEq for FieldSource
Auto Trait Implementations§
impl Freeze for FieldSource
impl RefUnwindSafe for FieldSource
impl Send for FieldSource
impl Sync for FieldSource
impl Unpin for FieldSource
impl UnsafeUnpin for FieldSource
impl UnwindSafe for FieldSource
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