pub enum LshapeError {
StandaloneNull {
path: String,
},
EmptyUnion {
path: String,
},
EmptyTuple {
path: String,
},
}Expand description
Error produced while mapping a Schema to lshape source text.
Variants§
StandaloneNull
Schema::Null outside of a Union — lshape has no standalone nil
type. Nullability is expressed by folding Union([T, Null]) into
T:is_optional().
EmptyUnion
Schema::Union whose only variant is Null (or which is empty).
EmptyTuple
Schema::Tuple with no elements — T.tuple requires at least one
item (unreachable via #[derive(SchemaBridge)], which covers 1-6
element tuples only).
Trait Implementations§
Source§impl Clone for LshapeError
impl Clone for LshapeError
Source§impl Debug for LshapeError
impl Debug for LshapeError
Source§impl Display for LshapeError
impl Display for LshapeError
Source§impl Error for LshapeError
impl Error for LshapeError
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<LshapeError> for ExportError
impl From<LshapeError> for ExportError
Source§fn from(e: LshapeError) -> Self
fn from(e: LshapeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LshapeError
impl PartialEq for LshapeError
impl StructuralPartialEq for LshapeError
Auto Trait Implementations§
impl Freeze for LshapeError
impl RefUnwindSafe for LshapeError
impl Send for LshapeError
impl Sync for LshapeError
impl Unpin for LshapeError
impl UnsafeUnpin for LshapeError
impl UnwindSafe for LshapeError
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