pub enum SegKind<'s> {
Field(&'s str),
ConstIndex(f64),
VarIndex {
name: &'s str,
ty: IndexTy,
},
}Expand description
一个链段的形态。
Variants§
Field(&'s str)
.name,或 ["name"] 这种静态键(调用方在建模时已折叠成同一种)
ConstIndex(f64)
[k],下标是字面量(已求值,保留浮点以便识别 1.5 这种非法下标)
VarIndex
[expr],下标是变量
Trait Implementations§
impl<'s> Copy for SegKind<'s>
impl<'s> StructuralPartialEq for SegKind<'s>
Auto Trait Implementations§
impl<'s> Forget for SegKind<'s>
impl<'s> Freeze for SegKind<'s>
impl<'s> Move for SegKind<'s>
impl<'s> RefUnwindSafe for SegKind<'s>
impl<'s> Send for SegKind<'s>
impl<'s> Sync for SegKind<'s>
impl<'s> Unpin for SegKind<'s>
impl<'s> UnsafeUnpin for SegKind<'s>where
&'s str: UnsafeUnpin,
impl<'s> UnwindSafe for SegKind<'s>where
&'s str: UnwindSafe,
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