Struct grammartec::rule::ScriptRule
source · pub struct ScriptRule {
pub nonterm: NTermID,
pub nonterms: Vec<NTermID>,
pub script: PyObject,
}
Fields§
§nonterm: NTermID
§nonterms: Vec<NTermID>
§script: PyObject
Implementations§
source§impl ScriptRule
impl ScriptRule
pub fn debug_show(&self, ctx: &Context) -> String
Trait Implementations§
source§impl Clone for ScriptRule
impl Clone for ScriptRule
Auto Trait Implementations§
impl !RefUnwindSafe for ScriptRule
impl Send for ScriptRule
impl Sync for ScriptRule
impl Unpin for ScriptRule
impl UnwindSafe for ScriptRule
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