pub enum GenerateError {
Rules(String),
NoForm(String),
NotWired(Language),
Codec(String),
}Expand description
Why a model did not become source.
Variants§
Rules(String)
The rules did not apply to the model.
NoForm(String)
The language has no form for something in the model.
NotWired(Language)
The language is materialised but not yet routed through here.
Codec(String)
The codec could not be built: the layout could not be planned, or
a construct has no writer or reader yet. source’s own error,
distinct from Self::NoForm because a materialiser’s refusal
and a codec’s are two different walks answering two different
questions about the same type.
Trait Implementations§
Source§impl Debug for GenerateError
impl Debug for GenerateError
Source§impl Display for GenerateError
impl Display for GenerateError
Source§impl Error for GenerateError
impl Error for GenerateError
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()
Auto Trait Implementations§
impl Freeze for GenerateError
impl RefUnwindSafe for GenerateError
impl Send for GenerateError
impl Sync for GenerateError
impl Unpin for GenerateError
impl UnsafeUnpin for GenerateError
impl UnwindSafe for GenerateError
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