pub struct Interpreter<'a> { /* private fields */ }
Expand description
The Interpreter
is used to interpret the XML schema information.
This structure can be used to interpret the Schemas
structure that was
loaded by the Parser
to generate the more common
Types
definition out of it.
Implementations§
Source§impl<'a> Interpreter<'a>
impl<'a> Interpreter<'a>
Sourcepub fn new(schemas: &'a Schemas) -> Self
pub fn new(schemas: &'a Schemas) -> Self
Create a new Interpreter
instance using the passed schemas
reference.
Sourcepub fn with_typedef<I, T>(self, ident: I, type_: T) -> Result<Self, Error>
pub fn with_typedef<I, T>(self, ident: I, type_: T) -> Result<Self, Error>
Sourcepub fn with_buildin_types(self) -> Result<Self, Error>
pub fn with_buildin_types(self) -> Result<Self, Error>
Sourcepub fn with_default_typedefs(self) -> Result<Self, Error>
pub fn with_default_typedefs(self) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Interpreter<'a>
impl<'a> !RefUnwindSafe for Interpreter<'a>
impl<'a> !Send for Interpreter<'a>
impl<'a> !Sync for Interpreter<'a>
impl<'a> Unpin for Interpreter<'a>
impl<'a> !UnwindSafe for Interpreter<'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