pub struct SchemaCatalog { /* private fields */ }Expand description
Catalog for mapping namespaces to schema locations
Implementations§
Source§impl SchemaCatalog
impl SchemaCatalog
Sourcepub fn add(&mut self, namespace: impl Into<String>, location: impl Into<String>)
pub fn add(&mut self, namespace: impl Into<String>, location: impl Into<String>)
Add an entry to the catalog
Sourcepub fn add_xml_catalog(&mut self)
pub fn add_xml_catalog(&mut self)
Add well-known XML namespaces with embedded schema locations.
Maps standard XML namespaces to embedded:// URIs that are resolved
by the EmbeddedLoader.
Trait Implementations§
Source§impl Clone for SchemaCatalog
impl Clone for SchemaCatalog
Source§fn clone(&self) -> SchemaCatalog
fn clone(&self) -> SchemaCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaCatalog
impl Debug for SchemaCatalog
Source§impl Default for SchemaCatalog
impl Default for SchemaCatalog
Source§fn default() -> SchemaCatalog
fn default() -> SchemaCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaCatalog
impl RefUnwindSafe for SchemaCatalog
impl Send for SchemaCatalog
impl Sync for SchemaCatalog
impl Unpin for SchemaCatalog
impl UnsafeUnpin for SchemaCatalog
impl UnwindSafe for SchemaCatalog
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