Struct bnf::Production [−][src]
pub struct Production {
pub lhs: Term,
// some fields omitted
}Expand description
A Production is comprised of any number of Expressions
Fields
lhs: TermImplementations
Construct a new Production
Construct an Production from Expressions
Add Expression to the Production’s right hand side
Remove Expression from the Production’s right hand side
If interested if Expression was removed, then inspect the returned Option.
Get mutable iterator of the Production’s right hand side Expressions
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Production
impl Send for Production
impl Sync for Production
impl Unpin for Production
impl UnwindSafe for Production
Blanket Implementations
Mutably borrows from an owned value. Read more
