pub struct CFGrammar { /* private fields */ }
Implementations§
source§impl CFGrammar
impl CFGrammar
pub fn generate(&self, ws: &mut WorkingSet, rng: &mut impl Rng)
pub fn learn(&mut self, sample_set: &SampleSet) -> Result<(), LearnError>
pub fn validate(&self) -> Result<(), ValidationError>
pub fn new<S: AsRef<str>>( initial_subtokens: &[S], rlf: bool, ral: bool ) -> CFGrammar
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CFGrammar
impl Send for CFGrammar
impl Sync for CFGrammar
impl Unpin for CFGrammar
impl UnwindSafe for CFGrammar
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