pub struct XmlState {
inner: RefCell<XmlStateInner>,
session: Session,
load_options: Arc<LoadOptions>,
}
Fields§
§inner: RefCell<XmlStateInner>
§session: Session
§load_options: Arc<LoadOptions>
Implementations§
source§impl XmlState
impl XmlState
fn new(
session: Session,
document_builder: DocumentBuilder,
load_options: Arc<LoadOptions>
) -> XmlState
fn check_last_error(&self) -> Result<(), LoadingError>
fn check_limits(&self) -> Result<(), ()>
pub fn start_element(&self, name: QualName, attrs: Attributes) -> Result<(), ()>
pub fn end_element(&self, _name: QualName)
pub fn characters(&self, text: &str)
pub fn processing_instruction(&self, target: &str, data: &str)
pub fn error(&self, e: LoadingError)
pub fn entity_lookup(&self, entity_name: &str) -> Option<*mut c_void>
pub fn entity_insert(&self, entity_name: &str, entity: *mut c_void)
fn element_creation_start_element(
&self,
name: &QualName,
attrs: Attributes
) -> Context
fn element_creation_end_element(&self)
fn element_creation_characters(&self, text: &str)
fn style_end_element(&self)
fn add_inline_stylesheet(&self)
fn inside_style_start_element(&self, name: &QualName) -> Context
fn unsupported_style_start_element(&self, _name: &QualName) -> Context
fn xinclude_start_element(&self, _name: &QualName, attrs: Attributes) -> Context
fn inside_xinclude_start_element(
&self,
ctx: &XIncludeContext,
name: &QualName
) -> Context
fn xinclude_fallback_start_element(
&self,
ctx: &XIncludeContext,
name: &QualName,
attrs: Attributes
) -> Context
fn xinclude_fallback_characters(&self, ctx: &XIncludeContext, text: &str)
fn acquire(
&self,
href: Option<&str>,
parse: Option<&str>,
encoding: Option<&str>
) -> Result<(), AcquireError>
fn include_xml(&self, aurl: &AllowedUrl) -> Result<(), AcquireError>
fn increase_xinclude_depth(&self, aurl: &AllowedUrl) -> Result<(), AcquireError>
fn decrease_xinclude_depth(&self)
fn acquire_text(
&self,
aurl: &AllowedUrl,
encoding: Option<&str>
) -> Result<(), AcquireError>
fn acquire_xml(&self, aurl: &AllowedUrl) -> Result<(), AcquireError>
fn parse_from_stream(
&self,
stream: &InputStream,
cancellable: Option<&Cancellable>
) -> Result<(), LoadingError>
fn unsupported_xinclude_start_element(&self, _name: &QualName) -> Context
fn build_document(
self,
stream: &InputStream,
cancellable: Option<&Cancellable>
) -> Result<Document, LoadingError>
Auto Trait Implementations§
impl !RefUnwindSafe for XmlState
impl !Send for XmlState
impl !Sync for XmlState
impl Unpin for XmlState
impl !UnwindSafe for XmlState
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.