Enum netsblox_vm::runtime::ToJsonError
source · pub enum ToJsonError<C: CustomTypes<S>, S: System<C>> {
BadNumber(f64),
ComplexType(Type<C, S>),
Cyclic,
}Variants§
BadNumber(f64)
The value was or contained a number which could not be expressed as f64.
ComplexType(Type<C, S>)
The value was or contained a type that cannot be exported as primitive Json.
Cyclic
The value contained a cycle, which Json forbids.
Trait Implementations§
source§impl<C: CustomTypes<S>, S: System<C>> Debug for ToJsonError<C, S>
impl<C: CustomTypes<S>, S: System<C>> Debug for ToJsonError<C, S>
source§impl<C: CustomTypes<S>, S: System<C>> From<ToJsonError<C, S>> for ErrorCause<C, S>
impl<C: CustomTypes<S>, S: System<C>> From<ToJsonError<C, S>> for ErrorCause<C, S>
source§fn from(error: ToJsonError<C, S>) -> Self
fn from(error: ToJsonError<C, S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C, S> RefUnwindSafe for ToJsonError<C, S>where <<C as CustomTypes<S>>::NativeValue as GetType>::Output: RefUnwindSafe,
impl<C, S> Send for ToJsonError<C, S>where <<C as CustomTypes<S>>::NativeValue as GetType>::Output: Send,
impl<C, S> Sync for ToJsonError<C, S>where <<C as CustomTypes<S>>::NativeValue as GetType>::Output: Sync,
impl<C, S> Unpin for ToJsonError<C, S>where <<C as CustomTypes<S>>::NativeValue as GetType>::Output: Unpin,
impl<C, S> UnwindSafe for ToJsonError<C, S>where <<C as CustomTypes<S>>::NativeValue as GetType>::Output: UnwindSafe,
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