pub struct XMLStreamReaderBuilder<'a, H: EntityResolver + ErrorHandler = DefaultSAXHandler> { /* private fields */ }Expand description
Builder for XMLStreamReader.
Implementations§
Source§impl<'a> XMLStreamReaderBuilder<'a>
impl<'a> XMLStreamReaderBuilder<'a>
Source§impl<'a, H: EntityResolver + ErrorHandler> XMLStreamReaderBuilder<'a, H>
impl<'a, H: EntityResolver + ErrorHandler> XMLStreamReaderBuilder<'a, H>
Sourcepub fn set_default_base_uri(
self,
base_uri: impl Into<Arc<URIStr>>,
) -> Result<Self, XMLError>
pub fn set_default_base_uri( self, base_uri: impl Into<Arc<URIStr>>, ) -> Result<Self, XMLError>
Set base_uri as the default base URI.
base_uri must be a absolute URI.
Sourcepub fn set_handler<Other: EntityResolver + ErrorHandler>(
self,
handler: Other,
) -> XMLStreamReaderBuilder<'a, Other>
pub fn set_handler<Other: EntityResolver + ErrorHandler>( self, handler: Other, ) -> XMLStreamReaderBuilder<'a, Other>
Set error_handler as the error handler.
Sourcepub fn set_parser_config(self, config: ParserConfig) -> Self
pub fn set_parser_config(self, config: ParserConfig) -> Self
Set config as the parser config.
Sourcepub fn enable_option(self, option: ParserOption) -> Self
pub fn enable_option(self, option: ParserOption) -> Self
Enable a parser option.
Sourcepub fn disable_option(self, option: ParserOption) -> Self
pub fn disable_option(self, option: ParserOption) -> Self
Disable a parser option.
Sourcepub fn build(self) -> XMLStreamReader<'a, H>
pub fn build(self) -> XMLStreamReader<'a, H>
Finish to build the parser.
Trait Implementations§
Auto Trait Implementations§
impl<'a, H = DefaultSAXHandler> !RefUnwindSafe for XMLStreamReaderBuilder<'a, H>
impl<'a, H = DefaultSAXHandler> !Send for XMLStreamReaderBuilder<'a, H>
impl<'a, H = DefaultSAXHandler> !Sync for XMLStreamReaderBuilder<'a, H>
impl<'a, H = DefaultSAXHandler> !UnwindSafe for XMLStreamReaderBuilder<'a, H>
impl<'a, H> Freeze for XMLStreamReaderBuilder<'a, H>
impl<'a, H> Unpin for XMLStreamReaderBuilder<'a, H>
impl<'a, H> UnsafeUnpin for XMLStreamReaderBuilder<'a, H>where
Option<H>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more