Struct swc_ecma_codegen::text_writer::JsWriter[][src]

pub struct JsWriter<'a, W: Write> { /* fields omitted */ }

Ported from createTextWriter of the typescript compiler.

https://github.com/Microsoft/TypeScript/blob/45eaf42006/src/compiler/utilities.ts#L2548

Implementations

impl<'a, W: Write> JsWriter<'a, W>[src]

pub fn new(
    cm: Lrc<SourceMap>,
    new_line: &'a str,
    wr: W,
    srcmap: Option<&'a mut Vec<(BytePos, LineCol)>>
) -> Self
[src]

pub fn with_target(
    cm: Lrc<SourceMap>,
    new_line: &'a str,
    wr: W,
    srcmap: Option<&'a mut Vec<(BytePos, LineCol)>>,
    target: JscTarget
) -> Self
[src]

Trait Implementations

impl<'a, W: Write> WriteJs for JsWriter<'a, W>[src]

Auto Trait Implementations

impl<'a, W> !RefUnwindSafe for JsWriter<'a, W>[src]

impl<'a, W> !Send for JsWriter<'a, W>[src]

impl<'a, W> !Sync for JsWriter<'a, W>[src]

impl<'a, W> Unpin for JsWriter<'a, W> where
    W: Unpin
[src]

impl<'a, W> !UnwindSafe for JsWriter<'a, W>[src]

Blanket Implementations

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

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

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

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

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

impl<T> Node for T where
    T: Any + ?Sized

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

impl<T> Sync for T where
    T: ?Sized
[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.