Trait json_ld_syntax::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<M, E>, 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<M, Infallible>, M>>
    where
        F: FnMut(Span) -> M
, { ... } fn parse_str_with<F>(
        content: &str,
        options: Options,
        metadata_builder: F
    ) -> Result<Meta<Self, M>, Meta<Error<M, Infallible>, M>>
    where
        F: FnMut(Span) -> M
, { ... } fn parse_infallible_utf8<C, F>(
        chars: C,
        metadata_builder: F
    ) -> Result<Meta<Self, M>, Meta<Error<M, Infallible>, 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<M, Infallible>, 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<M, E>, 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<M, E>, 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<M, Infallible>, 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<M, Infallible>, 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<M, E>, 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<M, E>, 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<M, E>, M>>
    where
        C: Iterator<Item = Result<DecodedChar, E>>,
        F: FnMut(Span) -> M
, { ... } }

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Implementors§