pub trait Reader<'de, D, N> where
D: Embeddable,
N: NestedValue<D>, {
type Mark;
Show 41 methods
fn next(&mut self, read_annotations: bool) -> Result<Option<N>, Error>;
fn open_record(&mut self, arity: Option<usize>) -> Result<Type, Error>;
fn open_sequence_or_set(&mut self) -> Result<Item, Error>;
fn open_sequence(&mut self) -> Result<(), Error>;
fn open_set(&mut self) -> Result<(), Error>;
fn open_dictionary(&mut self) -> Result<(), Error>;
fn boundary(&mut self, b: &Type) -> Result<(), Error>;
fn close_compound(&mut self, b: &mut Type, i: &Item) -> Result<bool, Error>;
fn open_embedded(&mut self) -> Result<(), Error>;
fn close_embedded(&mut self) -> Result<(), Error>;
fn mark(&mut self) -> Result<Self::Mark, Error>;
fn restore(&mut self, mark: &Self::Mark) -> Result<(), Error>;
fn next_token(
&mut self,
read_embedded_annotations: bool
) -> Result<Token<D, N>, Error>;
fn next_annotations_and_token(
&mut self
) -> Result<(Vec<N, Global>, Token<D, N>), Error>;
fn skip_value(&mut self) -> Result<(), Error> { ... }
fn demand_next(&mut self, read_annotations: bool) -> Result<N, Error> { ... }
fn next_boolean(&mut self) -> Result<bool, Error> { ... }
fn next_float(&mut self) -> Result<Float, Error> { ... }
fn next_double(&mut self) -> Result<Double, Error> { ... }
fn next_signedinteger(&mut self) -> Result<SignedInteger, Error> { ... }
fn next_i8(&mut self) -> Result<i8, Error> { ... }
fn next_u8(&mut self) -> Result<u8, Error> { ... }
fn next_i16(&mut self) -> Result<i16, Error> { ... }
fn next_u16(&mut self) -> Result<u16, Error> { ... }
fn next_i32(&mut self) -> Result<i32, Error> { ... }
fn next_u32(&mut self) -> Result<u32, Error> { ... }
fn next_i64(&mut self) -> Result<i64, Error> { ... }
fn next_u64(&mut self) -> Result<u64, Error> { ... }
fn next_i128(&mut self) -> Result<i128, Error> { ... }
fn next_u128(&mut self) -> Result<u128, Error> { ... }
fn next_f32(&mut self) -> Result<f32, Error> { ... }
fn next_f64(&mut self) -> Result<f64, Error> { ... }
fn next_char(&mut self) -> Result<char, Error> { ... }
fn next_str(&mut self) -> Result<Cow<'de, str>, Error> { ... }
fn next_bytestring(&mut self) -> Result<Cow<'de, [u8]>, Error> { ... }
fn next_symbol(&mut self) -> Result<Cow<'de, str>, Error> { ... }
fn open_option(&mut self) -> Result<Option<Type>, Error> { ... }
fn open_simple_record(
&mut self,
name: &str,
arity: Option<usize>
) -> Result<Type, Error> { ... }
fn configured(
self,
read_annotations: bool
) -> ConfiguredReader<'de, D, N, Self> { ... }
fn ensure_more_expected(
&mut self,
b: &mut Type,
i: &Item
) -> Result<(), Error> { ... }
fn ensure_complete(&mut self, b: Type, i: &Item) -> Result<(), Error> { ... }
}