XmlSchemaParserCtxt

Struct XmlSchemaParserCtxt 

Source
pub struct XmlSchemaParserCtxt<'a> { /* private fields */ }

Implementations§

Source§

impl XmlSchemaParserCtxt<'_>

Source

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

Source

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

Source

pub unsafe fn set_structured_errors( &mut self, serror: Option<StructuredError>, ctx: Option<GenericErrorContext>, )

Set the structured error callback

Source§

impl XmlSchemaParserCtxt<'_>

Source

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§

Source§

impl Default for XmlSchemaParserCtxt<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V