pub enum TableIndexSpec {
Named(Spanned<NamePath>),
NatRange(u64, Span),
}Expand description
An index specification in a table literal’s bracket list: table[Phase, 3]
Named indexes reference declared index types, while Nat range literals
desugar to range(N) with synthetic variants #0, #1, etc.
Variants§
Named(Spanned<NamePath>)
A named index: Phase, Maneuver, or module.Maneuver
NatRange(u64, Span)
A Nat range literal: 3 (desugars to range(3))
Implementations§
Trait Implementations§
Source§impl Clone for TableIndexSpec
impl Clone for TableIndexSpec
Source§fn clone(&self) -> TableIndexSpec
fn clone(&self) -> TableIndexSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TableIndexSpec
impl Debug for TableIndexSpec
Source§impl FormatEquivalent for TableIndexSpec
impl FormatEquivalent for TableIndexSpec
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl Freeze for TableIndexSpec
impl RefUnwindSafe for TableIndexSpec
impl Send for TableIndexSpec
impl Sync for TableIndexSpec
impl Unpin for TableIndexSpec
impl UnsafeUnpin for TableIndexSpec
impl UnwindSafe for TableIndexSpec
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