pub struct RuleVariant {
pub pattern: Vec<Pattern>,
pub action: TokenStream,
}Fields§
§pattern: Vec<Pattern>§action: TokenStreamImplementations§
Source§impl RuleVariant
impl RuleVariant
pub fn parse_list(input: ParseStream<'_>) -> Result<Vec<Self>>
Trait Implementations§
Source§impl From<RuleVariant> for RuleVariant
impl From<RuleVariant> for RuleVariant
Source§fn from(p: RuleVariant) -> Self
fn from(p: RuleVariant) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuleVariant
impl RefUnwindSafe for RuleVariant
impl !Send for RuleVariant
impl !Sync for RuleVariant
impl Unpin for RuleVariant
impl UnsafeUnpin for RuleVariant
impl UnwindSafe for RuleVariant
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