pub struct SubstitutionParserContext<'a> {
pub parser_context: &'a ParserContext<'a>,
pub input_start: SourcePosition,
pub missing_closing_characters: String,
}Expand description
Context for parsing an arbitrary substitution function.
Fields§
§parser_context: &'a ParserContext<'a>Original parser context.
input_start: SourcePositionThe start of the value being parsed. Positions are recorded relative to this.
missing_closing_characters: StringClosing characters implied by EOF, to be appended to the value’s serialization.
Implementations§
Source§impl<'a> SubstitutionParserContext<'a>
impl<'a> SubstitutionParserContext<'a>
Sourcepub fn new(
parser_context: &'a ParserContext<'a>,
input_start: SourcePosition,
) -> Self
pub fn new( parser_context: &'a ParserContext<'a>, input_start: SourcePosition, ) -> Self
Creates a parser context for a value starting at input_start.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SubstitutionParserContext<'a>
impl<'a> !Send for SubstitutionParserContext<'a>
impl<'a> !Sync for SubstitutionParserContext<'a>
impl<'a> !UnwindSafe for SubstitutionParserContext<'a>
impl<'a> Freeze for SubstitutionParserContext<'a>
impl<'a> Unpin for SubstitutionParserContext<'a>
impl<'a> UnsafeUnpin for SubstitutionParserContext<'a>
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> ErasedDestructor for Twhere
T: 'static,
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<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert