pub struct XmlSchemaParserCtxt<'a> { /* private fields */ }Implementations§
Source§impl XmlSchemaParserCtxt<'_>
impl XmlSchemaParserCtxt<'_>
Sourcepub unsafe fn get_errors(
&self,
err: Option<&mut Option<GenericError>>,
warn: Option<&mut Option<GenericError>>,
ctx: Option<&mut Option<GenericErrorContext>>,
) -> i32
pub unsafe fn get_errors( &self, err: Option<&mut Option<GenericError>>, warn: Option<&mut Option<GenericError>>, ctx: Option<&mut Option<GenericErrorContext>>, ) -> i32
Get the callback information used to handle errors for a parser context
Returns -1 in case of failure, 0 otherwise
Sourcepub unsafe fn set_errors(
&mut self,
err: Option<GenericError>,
warn: Option<GenericError>,
ctx: Option<GenericErrorContext>,
)
pub unsafe fn set_errors( &mut self, err: Option<GenericError>, warn: Option<GenericError>, ctx: Option<GenericErrorContext>, )
Set the callback functions used to handle errors for a validation context
Sourcepub unsafe fn set_structured_errors(
&mut self,
serror: Option<StructuredError>,
ctx: Option<GenericErrorContext>,
)
pub unsafe fn set_structured_errors( &mut self, serror: Option<StructuredError>, ctx: Option<GenericErrorContext>, )
Set the structured error callback
Source§impl XmlSchemaParserCtxt<'_>
impl XmlSchemaParserCtxt<'_>
Sourcepub unsafe fn parse(&mut self) -> XmlSchemaPtr
pub unsafe fn parse(&mut self) -> XmlSchemaPtr
parse a schema definition resource and build an internal XML Schema structure which can be used to validate instances.
Returns the internal XML Schema structure built from the resource or NULL in case of error
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for XmlSchemaParserCtxt<'a>
impl<'a> !RefUnwindSafe for XmlSchemaParserCtxt<'a>
impl<'a> !Send for XmlSchemaParserCtxt<'a>
impl<'a> !Sync for XmlSchemaParserCtxt<'a>
impl<'a> Unpin for XmlSchemaParserCtxt<'a>
impl<'a> !UnwindSafe for XmlSchemaParserCtxt<'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