pub struct StaticState<L>{
pub namespace: Option<L>,
pub ext_dtd_resolver: Option<fn(Option<String>, String) -> Result<String, Error>>,
/* private fields */
}Expand description
Parser state configuration that cannot be cloned. Also state that needs to be persistent during parsing.
Fields§
§namespace: Option<L>§ext_dtd_resolver: Option<fn(Option<String>, String) -> Result<String, Error>>Implementations§
Source§impl<L> StaticState<L>
impl<L> StaticState<L>
Auto Trait Implementations§
impl<L> Freeze for StaticState<L>where
L: Freeze,
impl<L> RefUnwindSafe for StaticState<L>where
L: RefUnwindSafe,
impl<L> Send for StaticState<L>where
L: Send,
impl<L> Sync for StaticState<L>where
L: Sync,
impl<L> Unpin for StaticState<L>where
L: Unpin,
impl<L> UnsafeUnpin for StaticState<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for StaticState<L>where
L: UnwindSafe,
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