Struct branchy::Rule [−][src]
Expand description
Describes a rule (or production) of a context-free grammar.
Fields
pattern: Nt
Expand description
Left-hand side of the rule (a single non-terminal symbol value).
replacement: Vec<Symbol<Nt, T>>
Expand description
Right-hand side of the rule (any sequence of symbols,
with which to replace the encountered pattern
).
Implementations
Trait Implementations
impl<Nt, T> StructuralPartialEq for Rule<Nt, T>
[src]
Auto Trait Implementations
impl<Nt, T> RefUnwindSafe for Rule<Nt, T> where
Nt: RefUnwindSafe,
T: RefUnwindSafe,
Nt: RefUnwindSafe,
T: RefUnwindSafe,
impl<Nt, T> Send for Rule<Nt, T> where
Nt: Send,
T: Send,
Nt: Send,
T: Send,
impl<Nt, T> Sync for Rule<Nt, T> where
Nt: Sync,
T: Sync,
Nt: Sync,
T: Sync,
impl<Nt, T> Unpin for Rule<Nt, T> where
Nt: Unpin,
T: Unpin,
Nt: Unpin,
T: Unpin,
impl<Nt, T> UnwindSafe for Rule<Nt, T> where
Nt: UnwindSafe,
T: UnwindSafe,
Nt: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,