pub struct Options {
pub max_token_length: usize,
pub context: Option<Arc<Context>>,
pub comments: CommentMode,
}Expand description
Parser configuration
Fields§
§max_token_length: usizeMaximum number of bytes which can form a token.
This limits the number of bytes in an attribute value, attribute name, element name or text chunk.
If a text chunk exceeds this size, it is split and emitted as separate text events.
If an element name, attribute name, or attribute value exceeds this
length, a
rxml::Error::RestrictedXml error is
returned.
context: Option<Arc<Context>>Parser context to use.
comments: CommentModeAllow the use of comments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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