pub enum TargetError<'a> {
MissingIsStage,
MissingName,
TargetVar(JsonCtx<'a, TargetDataError<VariableKind>>),
TargetLis(JsonCtx<'a, TargetDataError<ListKind>>),
TargetBlocks(TargetBlocksError<'a>),
}Expand description
Failure while parsing a Target.
Variants§
MissingIsStage
Every target should say if it is the stage or a sprite.
MissingName
Every target should have a name.
TargetVar(JsonCtx<'a, TargetDataError<VariableKind>>)
The saved variable values are provided in an invalid way
TargetLis(JsonCtx<'a, TargetDataError<ListKind>>)
The saved variable values are provided in an invalid way
TargetBlocks(TargetBlocksError<'a>)
The target blocks (the most important compononet) is invalid
Trait Implementations§
Source§impl<'a> Debug for TargetError<'a>
impl<'a> Debug for TargetError<'a>
Source§impl<'a> Display for TargetError<'a>
impl<'a> Display for TargetError<'a>
Source§impl<'a> Error for TargetError<'a>
impl<'a> Error for TargetError<'a>
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<'a> From<JsonCtx<'a, TargetDataError<ListKind>>> for TargetError<'a>
impl<'a> From<JsonCtx<'a, TargetDataError<ListKind>>> for TargetError<'a>
Source§impl<'a> From<JsonCtx<'a, TargetDataError<VariableKind>>> for TargetError<'a>
impl<'a> From<JsonCtx<'a, TargetDataError<VariableKind>>> for TargetError<'a>
Source§fn from(value: JsonCtx<'a, TargetDataError<VariableKind>>) -> Self
fn from(value: JsonCtx<'a, TargetDataError<VariableKind>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TargetBlocksError<'a>> for TargetError<'a>
impl<'a> From<TargetBlocksError<'a>> for TargetError<'a>
Source§fn from(value: TargetBlocksError<'a>) -> Self
fn from(value: TargetBlocksError<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !Send for TargetError<'a>
impl<'a> !Sync for TargetError<'a>
impl<'a> Freeze for TargetError<'a>
impl<'a> RefUnwindSafe for TargetError<'a>
impl<'a> Unpin for TargetError<'a>
impl<'a> UnsafeUnpin for TargetError<'a>
impl<'a> UnwindSafe for TargetError<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more