Struct LanguageDef

Source
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>
where CL: Freeze, CS: Freeze, CE: Freeze, IS: Freeze, I: Freeze, OS: Freeze, O: Freeze,

§

impl<IS, I, OS, O, CL, CS, CE> RefUnwindSafe for LanguageDef<IS, I, OS, O, CL, CS, CE>

§

impl<IS, I, OS, O, CL, CS, CE> Send for LanguageDef<IS, I, OS, O, CL, CS, CE>
where CL: Send, CS: Send, CE: Send, IS: Send, I: Send, OS: Send, O: Send,

§

impl<IS, I, OS, O, CL, CS, CE> Sync for LanguageDef<IS, I, OS, O, CL, CS, CE>
where CL: Sync, CS: Sync, CE: Sync, IS: Sync, I: Sync, OS: Sync, O: Sync,

§

impl<IS, I, OS, O, CL, CS, CE> Unpin for LanguageDef<IS, I, OS, O, CL, CS, CE>
where CL: Unpin, CS: Unpin, CE: Unpin, IS: Unpin, I: Unpin, OS: Unpin, O: Unpin,

§

impl<IS, I, OS, O, CL, CS, CE> UnwindSafe for LanguageDef<IS, I, OS, O, CL, CS, CE>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.