pub struct SchemaParserContext { /* private fields */ }Expand description
Wrapper on xmlSchemaParserCtxt
Implementations§
Source§impl SchemaParserContext
impl SchemaParserContext
Sourcepub fn from_document(doc: &Document) -> Self
pub fn from_document(doc: &Document) -> Self
Create a schema parsing context from a Document object
Sourcepub fn from_buffer<Bytes: AsRef<[u8]>>(buff: Bytes) -> Self
pub fn from_buffer<Bytes: AsRef<[u8]>>(buff: Bytes) -> Self
Create a schema parsing context from a buffer in memory
Sourcepub fn drain_errors(&mut self) -> Vec<StructuredError>
pub fn drain_errors(&mut self) -> Vec<StructuredError>
Drains error log from errors that might have accumulated while parsing schema
Sourcepub fn as_ptr(&self) -> *mut _xmlSchemaParserCtxt
pub fn as_ptr(&self) -> *mut _xmlSchemaParserCtxt
Return a raw pointer to the underlying xmlSchemaParserCtxt structure
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaParserContext
impl RefUnwindSafe for SchemaParserContext
impl !Send for SchemaParserContext
impl !Sync for SchemaParserContext
impl Unpin for SchemaParserContext
impl UnwindSafe for SchemaParserContext
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