pub struct SchemaCompileError {
pub message: String,
pub line: Option<u32>,
pub column: Option<u32>,
}Expand description
Error returned by Schema::compile_str
and friends. Schema compilation produces at most one error — the
compiler bails on the first problem since later phases assume a
well-formed type graph.
Fields§
§message: String§line: Option<u32>§column: Option<u32>Implementations§
Source§impl SchemaCompileError
impl SchemaCompileError
pub fn msg(s: impl Into<String>) -> SchemaCompileError
pub fn at(self, line: u32, column: u32) -> SchemaCompileError
Trait Implementations§
Source§impl Clone for SchemaCompileError
impl Clone for SchemaCompileError
Source§fn clone(&self) -> SchemaCompileError
fn clone(&self) -> SchemaCompileError
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 SchemaCompileError
impl Debug for SchemaCompileError
Source§impl Display for SchemaCompileError
impl Display for SchemaCompileError
Source§impl Error for SchemaCompileError
impl Error for SchemaCompileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<XmlError> for SchemaCompileError
impl From<XmlError> for SchemaCompileError
Source§fn from(e: XmlError) -> SchemaCompileError
fn from(e: XmlError) -> SchemaCompileError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaCompileError
impl RefUnwindSafe for SchemaCompileError
impl Send for SchemaCompileError
impl Sync for SchemaCompileError
impl Unpin for SchemaCompileError
impl UnsafeUnpin for SchemaCompileError
impl UnwindSafe for SchemaCompileError
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