pub struct Lenient<'a> { /* private fields */ }Expand description
the forgiving reader (see the top of this file)
Implementations§
Source§impl<'a> Lenient<'a>
impl<'a> Lenient<'a>
Sourcepub fn new(s: &'a str) -> Lenient<'a>
pub fn new(s: &'a str) -> Lenient<'a>
a reader of s with the default limits (ATTRS, ENTITIES, EXPAND)
Sourcepub fn with_limits(
s: &'a str,
attrs: usize,
entities: usize,
expand: usize,
) -> Lenient<'a>
pub fn with_limits( s: &'a str, attrs: usize, entities: usize, expand: usize, ) -> Lenient<'a>
a reader with at most attrs attributes per start tag, entities entity declarations and expand
bytes of entity values in all
Sourcepub fn truncated(&self) -> bool
pub fn truncated(&self) -> bool
whether the input ended inside a tag or the entities’ budget was spent
Auto Trait Implementations§
impl<'a> Forget for Lenient<'a>
impl<'a> Freeze for Lenient<'a>
impl<'a> Move for Lenient<'a>
impl<'a> RefUnwindSafe for Lenient<'a>
impl<'a> Send for Lenient<'a>
impl<'a> Sync for Lenient<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Lenient<'a>
impl<'a> UnsafeUnpin for Lenient<'a>where
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl<'a> UnwindSafe for Lenient<'a>
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