mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Allow deriving Parse for keywords.
This commit is contained in:
parent
da3dd05ff9
commit
7036cb0077
5 changed files with 126 additions and 38 deletions
|
@ -149,8 +149,10 @@ pub trait Parse : Sized {
|
|||
/// Parse a value of this type.
|
||||
///
|
||||
/// Returns an error on failure.
|
||||
fn parse<'i, 't>(context: &ParserContext, input: &mut Parser<'i, 't>)
|
||||
-> Result<Self, ParseError<'i>>;
|
||||
fn parse<'i, 't>(
|
||||
context: &ParserContext,
|
||||
input: &mut Parser<'i, 't>,
|
||||
) -> Result<Self, ParseError<'i>>;
|
||||
}
|
||||
|
||||
impl<T> Parse for Vec<T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue