pub struct RuleVariant {
pub pattern: Vec<ModelPattern>,
pub action: TokenStream,
}Fields§
§pattern: Vec<ModelPattern>§action: TokenStreamTrait Implementations§
Source§impl Clone for RuleVariant
impl Clone for RuleVariant
Source§fn clone(&self) -> RuleVariant
fn clone(&self) -> RuleVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleVariant
impl Debug for RuleVariant
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