[][src]Struct typeshare::language::Generator

pub struct Generator<'l> { /* fields omitted */ }

Methods

impl<'l> Generator<'l>[src]

pub fn new(language: &'l mut dyn Language, params: GeneratorParams) -> Self[src]

pub fn process_file(
    &mut self,
    filename: &str,
    w: &mut dyn Write
) -> Result<(), Box<dyn Error>>
[src]

pub fn process_source(
    &mut self,
    source: String,
    w: &mut dyn Write
) -> Result<(), Box<dyn Error>>
[src]

pub fn write(&mut self, w: &mut dyn Write) -> Result<(), Box<dyn Error>>[src]

Auto Trait Implementations

impl<'l> !Send for Generator<'l>

impl<'l> Unpin for Generator<'l>

impl<'l> !Sync for Generator<'l>

impl<'l> !RefUnwindSafe for Generator<'l>

impl<'l> !UnwindSafe for Generator<'l>

Blanket Implementations

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