pub enum PathRoot {
Model(ModelId),
Variant {
parent: Box<Path>,
variant_id: VariantId,
},
}Expand description
The root of a path traversal.
A path can originate from a top-level model or from a specific variant of an embedded enum field.
Variants§
Model(ModelId)
The path originates from a top-level model.
Variant
The path originates from a specific variant of an embedded enum.
parent navigates to the enum field; subsequent projection steps index
into that variant’s fields using 0-based local indices.
Implementations§
Trait Implementations§
impl StructuralPartialEq for PathRoot
Auto Trait Implementations§
impl Freeze for PathRoot
impl RefUnwindSafe for PathRoot
impl Send for PathRoot
impl Sync for PathRoot
impl Unpin for PathRoot
impl UnwindSafe for PathRoot
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