pub trait StateHandler:
Send
+ Sync
+ Debug {
// Required methods
fn can_handle(&self, state: &ParseState) -> bool;
fn handle(&self, state: &mut ParseState) -> Result<bool, FuzzyJsonError>;
}Required Methods§
fn can_handle(&self, state: &ParseState) -> bool
fn handle(&self, state: &mut ParseState) -> Result<bool, FuzzyJsonError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".