pub struct Segment<'s> {
pub kind: SegKind<'s>,
pub optional: bool,
pub ty: SegType<'s>,
}Expand description
链上的一段。
Fields§
§kind: SegKind<'s>段的形态
optional: boolJS 里是否写了 ?.(静态键也可写成 ?.["...],同样记为 true)
ty: SegType<'s>这一段取到的值的类型
Implementations§
Trait Implementations§
impl<'s> Copy for Segment<'s>
impl<'s> StructuralPartialEq for Segment<'s>
Auto Trait Implementations§
impl<'s> Forget for Segment<'s>
impl<'s> Freeze for Segment<'s>
impl<'s> Move for Segment<'s>
impl<'s> RefUnwindSafe for Segment<'s>
impl<'s> Send for Segment<'s>
impl<'s> Sync for Segment<'s>
impl<'s> Unpin for Segment<'s>
impl<'s> UnsafeUnpin for Segment<'s>where
&'s str: UnsafeUnpin,
impl<'s> UnwindSafe for Segment<'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