Struct style::properties_and_values::syntax::Parser
source · struct Parser<'a> {
input: &'a str,
position: usize,
output: &'a mut Vec<Component>,
}
Fields§
§input: &'a str
§position: usize
§output: &'a mut Vec<Component>
Implementations§
source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
fn new(input: &'a str, output: &'a mut Vec<Component>) -> Self
fn peek(&self) -> Option<u8>
fn parse(&mut self) -> Result<(), ParseError>
fn skip_whitespace(&mut self)
sourcefn parse_data_type_name(&mut self) -> Result<DataType, ParseError>
fn parse_data_type_name(&mut self) -> Result<DataType, ParseError>
fn parse_name(&mut self) -> Result<ComponentName, ParseError>
fn parse_multiplier(&mut self) -> Option<Multiplier>
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> !UnwindSafe for Parser<'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
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