Docs.rs
  • chill-json-0.1.0
    • chill-json 0.1.0
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • crates.io
    • Source
    • Owners
    • ravinderpayal
    • Dependencies
      • anyhow ^1.0 normal
      • serde ^1.0 normal
      • serde_json ^1.0.140 normal
      • serde_json5 ^0.2.1 normal
      • thiserror ^1.0 normal
      • criterion ^0.6 dev
    • Versions
    • 1.19% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

chill_json0.1.0

RepairStrategy

Required Methods

  • can_repair
  • name
  • priority
  • repair

Implementors

In crate chill_json

chill_json

Trait RepairStrategy

Source
pub trait RepairStrategy:
    Send
    + Sync
    + Debug {
    // Required methods
    fn name(&self) -> &'static str;
    fn can_repair(&self, state: &ParseState, error: &str) -> bool;
    fn repair(
        &self,
        state: &mut ParseState,
        error: &str,
    ) -> Result<(), FuzzyJsonError>;
    fn priority(&self) -> u8;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn can_repair(&self, state: &ParseState, error: &str) -> bool

Source

fn repair( &self, state: &mut ParseState, error: &str, ) -> Result<(), FuzzyJsonError>

Source

fn priority(&self) -> u8

Implementors§

Source§

impl RepairStrategy for CodeBlockMarkersStrategy

Source§

impl RepairStrategy for IncompleteArrayStrategy

Source§

impl RepairStrategy for IncompletePropertyStrategy

Source§

impl RepairStrategy for MissingBracketsStrategy

Source§

impl RepairStrategy for MissingQuotesStrategy

Source§

impl RepairStrategy for SingleQuotesStrategy

Source§

impl RepairStrategy for TrailingCommaStrategy

Source§

impl RepairStrategy for TrimStrayContentInBeginningStrategy

Source§

impl RepairStrategy for TrimStrayContentInEndStrategy

Source§

impl RepairStrategy for TruncationRepairStrategy