pub enum Refinement<'a> {
Index(Span, Index<'a>),
Resolved(u32),
}
Available on crate feature
component-model
only.Expand description
A refinement for a variant case.
Variants§
Index(Span, Index<'a>)
The refinement is referenced by index.
Resolved(u32)
The refinement has been resolved to an index into the cases of the variant.
Trait Implementations§
Source§impl<'a> Debug for Refinement<'a>
impl<'a> Debug for Refinement<'a>
Source§impl From<&Refinement<'_>> for u32
impl From<&Refinement<'_>> for u32
Source§fn from(r: &Refinement<'_>) -> Self
fn from(r: &Refinement<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Refinement<'a>
impl<'a> RefUnwindSafe for Refinement<'a>
impl<'a> Send for Refinement<'a>
impl<'a> Sync for Refinement<'a>
impl<'a> Unpin for Refinement<'a>
impl<'a> UnwindSafe for Refinement<'a>
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