pub struct UnevaluatedLabel {
pub case: usize,
}Expand description
A case label whose constant expression the model cannot evaluate.
Carries the case’s index and not a message: the caller holds the path and the case’s name, which is what makes the refusal actionable.
Fields§
§case: usizeWhich case of the union the label belongs to.
Trait Implementations§
Source§impl Clone for UnevaluatedLabel
impl Clone for UnevaluatedLabel
impl Copy for UnevaluatedLabel
Auto Trait Implementations§
impl Freeze for UnevaluatedLabel
impl RefUnwindSafe for UnevaluatedLabel
impl Send for UnevaluatedLabel
impl Sync for UnevaluatedLabel
impl Unpin for UnevaluatedLabel
impl UnsafeUnpin for UnevaluatedLabel
impl UnwindSafe for UnevaluatedLabel
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