[−][src]Struct ressa::Builder
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]
self,
handler: CH
) -> Result<Parser<'b, CH>, Error> where
CH: CommentHandler<'b>,
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,