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>, load_limiter: LoadingDepthLimiter, ) -> 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<gpointer>
pub fn entity_insert(&self, entity_data: EntityData)
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 !Freeze for XmlState
impl !RefUnwindSafe for XmlState
impl !Send for XmlState
impl !Sync for XmlState
impl !UnwindSafe for XmlState
impl Unpin for XmlState
impl UnsafeUnpin for XmlState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§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.