pub struct PlanId(/* private fields */);Expand description
The identity of a registered parser plan.
NonZeroU32 on purpose: a 0 meaning “parser analysis failed” would be
indistinguishable from the first successfully registered plan. No u32
means “no plan”, so that encoding is unwritable — a failed analysis lowers
to an error expression instead.
Implementations§
Trait Implementations§
impl Copy for PlanId
impl Eq for PlanId
impl StructuralPartialEq for PlanId
Auto Trait Implementations§
impl Freeze for PlanId
impl RefUnwindSafe for PlanId
impl Send for PlanId
impl Sync for PlanId
impl Unpin for PlanId
impl UnsafeUnpin for PlanId
impl UnwindSafe for PlanId
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