Skip to main content

StateHandler

Trait StateHandler 

Source
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§

Source

fn can_handle(&self, state: &ParseState) -> bool

Source

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".

Implementors§