Trait json_syntax::parse::Parse
source · [−]pub trait Parse<M>: Sized {
fn parse_spanned<C, F, E>(
parser: &mut Parser<C, F, E>,
context: Context
) -> Result<Meta<Self, Span>, Meta<Error<E, M>, M>>
where
C: Iterator<Item = Result<DecodedChar, E>>,
F: FnMut(Span) -> M;
fn parse_str<F>(
content: &str,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>>
where
F: FnMut(Span) -> M,
{ ... }
fn parse_str_with<F>(
content: &str,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>>
where
F: FnMut(Span) -> M,
{ ... }
fn parse_infallible_utf8<C, F>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>>
where
C: Iterator<Item = char>,
F: FnMut(Span) -> M,
{ ... }
fn parse_utf8_infallible_with<C, F>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>>
where
C: Iterator<Item = char>,
F: FnMut(Span) -> M,
{ ... }
fn parse_utf8<C, F, E>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>>
where
C: Iterator<Item = Result<char, E>>,
F: FnMut(Span) -> M,
{ ... }
fn parse_utf8_with<C, F, E>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>>
where
C: Iterator<Item = Result<char, E>>,
F: FnMut(Span) -> M,
{ ... }
fn parse_infallible<C, F>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>>
where
C: Iterator<Item = DecodedChar>,
F: FnMut(Span) -> M,
{ ... }
fn parse_infallible_with<C, F>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>>
where
C: Iterator<Item = DecodedChar>,
F: FnMut(Span) -> M,
{ ... }
fn parse<C, F, E>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>>
where
C: Iterator<Item = Result<DecodedChar, E>>,
F: FnMut(Span) -> M,
{ ... }
fn parse_with<C, F, E>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>>
where
C: Iterator<Item = Result<DecodedChar, E>>,
F: FnMut(Span) -> M,
{ ... }
fn parse_in<C, F, E>(
parser: &mut Parser<C, F, E>,
context: Context
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>>
where
C: Iterator<Item = Result<DecodedChar, E>>,
F: FnMut(Span) -> M,
{ ... }
}
Required Methods
Provided Methods
sourcefn parse_str<F>(
fn parse_str<F>(
content: &str,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>> where
F: FnMut(Span) -> M,
sourcefn parse_str_with<F>(
fn parse_str_with<F>(
content: &str,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>> where
F: FnMut(Span) -> M,
sourcefn parse_infallible_utf8<C, F>(
fn parse_infallible_utf8<C, F>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>> where
C: Iterator<Item = char>,
F: FnMut(Span) -> M,
sourcefn parse_utf8_infallible_with<C, F>(
fn parse_utf8_infallible_with<C, F>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>> where
C: Iterator<Item = char>,
F: FnMut(Span) -> M,
sourcefn parse_utf8<C, F, E>(
fn parse_utf8<C, F, E>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>> where
C: Iterator<Item = Result<char, E>>,
F: FnMut(Span) -> M,
sourcefn parse_utf8_with<C, F, E>(
fn parse_utf8_with<C, F, E>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<E, M>, M>> where
C: Iterator<Item = Result<char, E>>,
F: FnMut(Span) -> M,
sourcefn parse_infallible<C, F>(
fn parse_infallible<C, F>(
chars: C,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>> where
C: Iterator<Item = DecodedChar>,
F: FnMut(Span) -> M,
sourcefn parse_infallible_with<C, F>(
fn parse_infallible_with<C, F>(
chars: C,
options: Options,
metadata_builder: F
) -> Result<Meta<Self, M>, Meta<Error<Infallible, M>, M>> where
C: Iterator<Item = DecodedChar>,
F: FnMut(Span) -> M,
sourcefn parse<C, F, E>(