pub enum PathSegment {
Descriptor,
Declaration(String),
Operation(String),
Field(String),
Parameter(String),
Case(String),
Index(usize),
Return,
Object(String),
Child(String),
}Expand description
A typed segment identifying a declaration or value location.
Variants§
Descriptor
Descriptor root.
Declaration(String)
Named type declaration.
Operation(String)
Operation declaration or call.
Field(String)
Record field declaration or value.
Parameter(String)
Operation parameter or argument.
Case(String)
Enum or union case.
Index(usize)
List index.
Return
Operation return value.
Object(String)
Object at a Worldspace path.
Child(String)
Child object in an observation response.
Trait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§impl Debug for PathSegment
impl Debug for PathSegment
impl Eq for PathSegment
Source§impl PartialEq for PathSegment
impl PartialEq for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnsafeUnpin for PathSegment
impl UnwindSafe for PathSegment
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