pub enum ValueError<'a> {
ValueError(ValueError<Value<'a>>),
ConvertToLabel(Value<'a>),
}Expand description
An extension of wagon_value::ValueError for specific errors related to dealing with GLLBlockLabel.
Variants§
ValueError(ValueError<Value<'a>>)
Any regular wagon_value::ValueError
ConvertToLabel(Value<'a>)
An error occured trying to convert a Value to a GLLBlockLabel.
Trait Implementations§
Source§impl<'a> Debug for ValueError<'a>
impl<'a> Debug for ValueError<'a>
Source§impl Display for ValueError<'_>
impl Display for ValueError<'_>
Source§impl Error for ValueError<'static>
impl Error for ValueError<'static>
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<ValueError<'a>> for GLLImplementationError<'a>
impl<'a> From<ValueError<'a>> for GLLImplementationError<'a>
Source§fn from(value: ValueError<'a>) -> Self
fn from(value: ValueError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ValueError<'a>> for GLLError<'a>
impl<'a> From<ValueError<'a>> for GLLError<'a>
Source§fn from(value: ValueError<'a>) -> Self
fn from(value: ValueError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ValueError<Value<'a>>> for ValueError<'a>
impl<'a> From<ValueError<Value<'a>>> for ValueError<'a>
Source§fn from(value: InnerValueError<Value<'a>>) -> Self
fn from(value: InnerValueError<Value<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ValueError<Value<Value<'a>>>> for ValueError<'a>
impl<'a> From<ValueError<Value<Value<'a>>>> for ValueError<'a>
Source§fn from(value: InnerValueError<InnerValue<Value<'a>>>) -> Self
fn from(value: InnerValueError<InnerValue<Value<'a>>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ValueError<'a>
impl<'a> !Send for ValueError<'a>
impl<'a> !Sync for ValueError<'a>
impl<'a> !UnwindSafe for ValueError<'a>
impl<'a> Freeze for ValueError<'a>
impl<'a> Unpin for ValueError<'a>
impl<'a> UnsafeUnpin for ValueError<'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