[][src]Struct yolk::ast::YololProgram

pub struct YololProgram { /* fields omitted */ }

Represents a Yolol program.

Methods

impl YololProgram[src]

pub fn optimize(self) -> Self[src]

Optimizes a Yolol program

Trait Implementations

impl Clone for YololProgram[src]

impl PartialEq<YololProgram> for YololProgram[src]

impl IntoIterator for YololProgram[src]

type Item = YololStmt

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Iterates over the statement in a Yolol program.

impl From<Vec<YololStmt>> for YololProgram[src]

fn from(stmts: Vec<YololStmt>) -> Self[src]

Converts Yolol statements to a program.

impl Display for YololProgram[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats a Yolol program as a string.

impl Debug for YololProgram[src]

impl TryFrom<YolkProgram> for YololProgram[src]

type Error = YolkError

The type returned in the event of a conversion error.

fn try_from(program: YolkProgram) -> Result<Self, Self::Error>[src]

Converts a Yolk program into a Yolol program.

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> From<T> for 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]