[][src]Struct ressa::Builder

pub struct Builder<'b> { /* fields omitted */ }

This is used to create a Parser using the builder method

Implementations

impl<'b> Builder<'b>[src]

pub fn new() -> Self[src]

pub fn set_tolerant(&mut self, value: bool)[src]

Enable or disable error tolerance default: false

pub fn tolerant(self, value: bool) -> Self[src]

Enable or disable error tolerance with a builder pattern default: false

pub fn set_module(&mut self, value: bool)[src]

Set the parsing context to module or script default: false (script)

pub fn module(self, value: bool) -> Self[src]

Set the parsing context to module or script with a builder pattern default: false (script)

pub fn set_js(&mut self, js: &'b str)[src]

Set the js text that this parser would operate on

pub fn js(self, js: &'b str) -> Self[src]

Set the js text that this parser would operate on with a builder pattern

pub fn build(self) -> Result<Parser<'b, DefaultCommentHandler>, Error>[src]

Complete the builder pattern returning Result<Parser, Error>

impl<'b> Builder<'b>[src]

pub fn with_comment_handler<CH>(
    self,
    handler: CH
) -> Result<Parser<'b, CH>, Error> where
    CH: CommentHandler<'b>, 
[src]

Trait Implementations

impl<'b> Default for Builder<'b>[src]

Auto Trait Implementations

impl<'b> RefUnwindSafe for Builder<'b>

impl<'b> Send for Builder<'b>

impl<'b> Sync for Builder<'b>

impl<'b> Unpin for Builder<'b>

impl<'b> UnwindSafe for Builder<'b>

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, 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.