[][src]Enum ocarina::grammar::Keyword

pub enum Keyword {
    SELECT,
    FROM,
    WHERE,
    ORDER,
    BY,
    CREATE,
    TABLE,
    TRIGGER,
    DATABASE,
    IF,
    ELSE,
    END,
    DESC,
    ASC,
    AS,
    TOP,
    BOTTOM,
    DISTINCT,
    LIMIT,
    OFFSET,
    GROUP,
    HAVING,
    JOIN,
    LIKE,
    IN,
    AND,
    UNKNOWN,
}

Variants

SELECTFROMWHEREORDERBYCREATETABLETRIGGERDATABASEIFELSEENDDESCASCASTOPBOTTOMDISTINCTLIMITOFFSETGROUPHAVINGJOINLIKEINANDUNKNOWN

Methods

impl Keyword[src]

pub fn value_for_command(&self) -> i32[src]

pub fn needs_data(&self) -> bool[src]

pub fn bigger_than(&self, comparator: &Keyword) -> bool[src]

pub fn compare_command(&self, comparator: &Keyword) -> i32[src]

compare the assigned values to a command in order to check what command has a higher importance level.

If the command value of the first element is bigger than the value of the parameter_keyword, the function will return 1; If they have the same value, it will return 0; If the value of the given element is smaller than the parameter_keyword, the function will return -1;

Trait Implementations

impl PartialEq<Keyword> for Keyword[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Debug for Keyword[src]

impl Display for Keyword[src]

Auto Trait Implementations

impl Send for Keyword

impl Sync for Keyword

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]