pub struct Location {
pub position: usize,
}Fields§
§position: usizeImplementations§
Trait Implementations§
Source§impl AddAssign<usize> for Location
impl AddAssign<usize> for Location
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+= operation. Read moreSource§impl Ord for Location
impl Ord for Location
Source§impl PartialOrd for Location
impl PartialOrd for Location
Source§impl Rule for Location
impl Rule for Location
Source§fn pre_parse<Cx>(
cx: ParseContext<'_, '_, Cx>,
state: PreParseState,
next: &RuleObject<'_, Cx>,
) -> Result<(), RuleParseFailed>
fn pre_parse<Cx>( cx: ParseContext<'_, '_, Cx>, state: PreParseState, next: &RuleObject<'_, Cx>, ) -> Result<(), RuleParseFailed>
Begins evaluating this rule, stopping when the lookahead buffer is full.
Source§fn parse<Cx>(
cx: ParseContext<'_, '_, Cx>,
_: &RuleObject<'_, Cx>,
) -> Result<Location, RuleParseFailed>
fn parse<Cx>( cx: ParseContext<'_, '_, Cx>, _: &RuleObject<'_, Cx>, ) -> Result<Location, RuleParseFailed>
Evaluates the rule. Read more
Source§fn print_visibility(&self, cx: &PrintContext<'_>) -> PrintVisibility
fn print_visibility(&self, cx: &PrintContext<'_>) -> PrintVisibility
Determines whether the AST node should be printed.
Source§fn print_tree(
&self,
cx: &PrintContext<'_>,
f: &mut Formatter<'_>,
) -> Result<(), Error>
fn print_tree( &self, cx: &PrintContext<'_>, f: &mut Formatter<'_>, ) -> Result<(), Error>
Writes the contents of the parsed AST node to
f.Source§impl SubAssign<usize> for Location
impl SubAssign<usize> for Location
Source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the
-= operation. Read moreimpl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more