pub struct Engine {
pub tier1_keys: Vec<String>,
pub tier2_keys: Vec<String>,
pub tier3_keys: Vec<String>,
pub keep_tier2_entries: bool,
pub keep_tier3_entries: bool,
pub fail_on_tier2: bool,
pub fail_on_tier3: bool,
pub fail_on_tier1_and_2: bool,
pub normalize_unicode: bool,
pub reset_string_on_fail: bool,
/* private fields */
}Fields§
§tier1_keys: Vec<String>§tier2_keys: Vec<String>§tier3_keys: Vec<String>§keep_tier2_entries: bool§keep_tier3_entries: bool§fail_on_tier2: bool§fail_on_tier3: bool§fail_on_tier1_and_2: bool§normalize_unicode: bool§reset_string_on_fail: boolImplementations§
Source§impl Engine
impl Engine
pub fn new() -> Engine
Sourcepub fn rebuild(&mut self)
pub fn rebuild(&mut self)
Rebuild Engine, used when updating
Normally it is done by the Engine::load function
Sourcepub fn load(
&mut self,
tier1_keys: Vec<String>,
tier2_keys: Vec<String>,
tier3_keys: Vec<String>,
concat: bool,
rebuild: bool,
)
pub fn load( &mut self, tier1_keys: Vec<String>, tier2_keys: Vec<String>, tier3_keys: Vec<String>, concat: bool, rebuild: bool, )
Load key datasets inside of the Engine
Sourcepub fn process(&self, input: String) -> DtxtOutput
pub fn process(&self, input: String) -> DtxtOutput
Process a String using the Engine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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