pub struct LanguageDef<IS, I, OS, O, CL, CS, CE> {
pub ident: Identifier<IS, I>,
pub op: Identifier<OS, O>,
pub comment_line: CL,
pub comment_start: CS,
pub comment_end: CE,
}
Expand description
A struct type which contains the necessary definitions to construct a language parser
Fields§
§ident: Identifier<IS, I>
How to parse an identifier
op: Identifier<OS, O>
How to parse an operator
comment_line: CL
Describes the start of a line comment
comment_start: CS
Describes the start of a block comment
comment_end: CE
Describes the end of a block comment
Auto Trait Implementations§
impl<IS, I, OS, O, CL, CS, CE> Freeze for LanguageDef<IS, I, OS, O, CL, CS, CE>
impl<IS, I, OS, O, CL, CS, CE> RefUnwindSafe for LanguageDef<IS, I, OS, O, CL, CS, CE>where
CL: RefUnwindSafe,
CS: RefUnwindSafe,
CE: RefUnwindSafe,
IS: RefUnwindSafe,
I: RefUnwindSafe,
OS: RefUnwindSafe,
O: RefUnwindSafe,
impl<IS, I, OS, O, CL, CS, CE> Send for LanguageDef<IS, I, OS, O, CL, CS, CE>
impl<IS, I, OS, O, CL, CS, CE> Sync for LanguageDef<IS, I, OS, O, CL, CS, CE>
impl<IS, I, OS, O, CL, CS, CE> Unpin for LanguageDef<IS, I, OS, O, CL, CS, CE>
impl<IS, I, OS, O, CL, CS, CE> UnwindSafe for LanguageDef<IS, I, OS, O, CL, CS, CE>where
CL: UnwindSafe,
CS: UnwindSafe,
CE: UnwindSafe,
IS: UnwindSafe,
I: UnwindSafe,
OS: UnwindSafe,
O: UnwindSafe,
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