pub fn new(neg: bool, idx: usize) -> Self {
        if neg {
            Self::Negative(idx)
        } else {
            Self::Absolute(idx)
        }
    }
/// Initializes a new node reference from an index. The `neg` parameter
/// determines if indexing should be [`Negative`](Self::Negative) or
/// [`Absolute`](Self::Absolute).
Initializes a new node reference from an index.
Initializes a new node reference from an index .
pub fn new(neg: bool, idx: usize) -> Self {
        if neg {
            Self::Negative(idx)
        } else {
            Self::Absolute(idx)
        }
    }
pub fn new ( neg : bool , idx : usize ) -> Self { if neg { Self :: Negative ( idx ) } else { Self :: Absolute ( idx ) } }
Initializes a new node reference from an index.
Initializes a new node reference from an index .
neg
bool
idx
usize
neg
bool
idx
usize