pub struct KeyValParser<'a, 'b, Pos: SourcePos + 'a, T: FromLaTeXToken<'a, Pos, &'a str> + CondSerialize, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), State: ParserState<'a, ParseStr<'a, Pos>, T, Err>> {
pub start: Pos,
pub key_range: SourceRange<Pos>,
pub key: &'a str,
value_end: Pos,
pub has_value: bool,
pub parser: &'b mut LaTeXParser<'a, ParseStr<'a, Pos>, T, Err, State>,
}Fields§
§start: Pos§key_range: SourceRange<Pos>§key: &'a str§value_end: Pos§has_value: bool§parser: &'b mut LaTeXParser<'a, ParseStr<'a, Pos>, T, Err, State>Implementations§
Source§impl<'a, Pos: SourcePos + 'a, T: FromLaTeXToken<'a, Pos, &'a str> + CondSerialize, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), State: ParserState<'a, ParseStr<'a, Pos>, T, Err>> KeyValParser<'a, '_, Pos, T, Err, State>
impl<'a, Pos: SourcePos + 'a, T: FromLaTeXToken<'a, Pos, &'a str> + CondSerialize, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), State: ParserState<'a, ParseStr<'a, Pos>, T, Err>> KeyValParser<'a, '_, Pos, T, Err, State>
pub fn parse<R: KeyValParsable<'a, Pos, T, Err, State> + CondSerialize>( &mut self, ) -> Option<ParsedKeyValue<Pos, R>>
pub const fn to_key_value<Tp: CondSerialize>( &self, val: Tp, ) -> ParsedKeyValue<Pos, Tp>
pub fn problem<D: Display>(&mut self, msg: D, severity: DiagnosticLevel)
pub fn tokens(&mut self) -> Vec<T>
pub fn read_value_str(&mut self) -> Option<&'a str>
pub fn read_value_str_normalized(&mut self) -> Option<Cow<'a, str>>
pub fn read_value_strs_normalized( &mut self, ) -> Vec<(Cow<'a, str>, SourceRange<Pos>)>
pub fn skip_value(&mut self)
Auto Trait Implementations§
impl<'a, 'b, Pos, T, Err, State> Freeze for KeyValParser<'a, 'b, Pos, T, Err, State>where
Pos: Freeze,
impl<'a, 'b, Pos, T, Err, State> RefUnwindSafe for KeyValParser<'a, 'b, Pos, T, Err, State>where
Pos: RefUnwindSafe,
State: RefUnwindSafe,
Err: RefUnwindSafe,
<State as ParserState<'a, ParseStr<'a, Pos>, T, Err>>::Group: RefUnwindSafe,
T: RefUnwindSafe,
<State as ParserState<'a, ParseStr<'a, Pos>, T, Err>>::MacroArg: RefUnwindSafe,
impl<'a, 'b, Pos, T, Err, State> Send for KeyValParser<'a, 'b, Pos, T, Err, State>
impl<'a, 'b, Pos, T, Err, State> Sync for KeyValParser<'a, 'b, Pos, T, Err, State>
impl<'a, 'b, Pos, T, Err, State> Unpin for KeyValParser<'a, 'b, Pos, T, Err, State>where
Pos: Unpin,
impl<'a, 'b, Pos, T, Err, State> !UnwindSafe for KeyValParser<'a, 'b, Pos, T, Err, State>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> SerializableKey for T
impl<T> SerializableKey for T
§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.