pub enum GLLImplementationError<'a> {
Show 13 variants
Utf8Error(Utf8Error),
ValueError(ValueError<'a>),
UnknownRule(&'a str),
UnknownLabel(&'a str),
MissingRoot,
MissingSPPFNode(SPPFNodeIndex),
IncorrectSPPFType(Vec<&'a str>, Discriminant<SPPFNode<'a>>),
MissingGSSNode(NodeIndex<DefaultIx>),
MissingGSSEdge(EdgeIndex),
MissingAttribute(AttributeKey, Rc<GSSNode<'a>>),
MissingContext(AttributeKey, Rc<GSSNode<'a>>),
CompletedSlot(String),
Fatal(&'a str),
}Expand description
Errors possible because of implementation mistakes.
Variants§
Utf8Error(Utf8Error)
Data was not utf8 compatible.
ValueError(ValueError<'a>)
A ValueError occurred during parsing.
UnknownRule(&'a str)
Tried to get a rule that does not exists.
UnknownLabel(&'a str)
Tried to get a label that does not exist.
MissingRoot
The non-terminal identified by ROOT_UUID could not be found.
MissingSPPFNode(SPPFNodeIndex)
An SPPF node that we expect to exist in the graph is inexplicably missing.
IncorrectSPPFType(Vec<&'a str>, Discriminant<SPPFNode<'a>>)
We expected a specific type of SPPF Node, but got another.
MissingGSSNode(NodeIndex<DefaultIx>)
A GSS node that we expect to exist in the graph is inexplicably missing.
MissingGSSEdge(EdgeIndex)
A GSS edge is inexplicably missing.
MissingAttribute(AttributeKey, Rc<GSSNode<'a>>)
An attribute that is expected to have been passed does not exist.
MissingContext(AttributeKey, Rc<GSSNode<'a>>)
An attribute that is expected to be in the context does not exist.
CompletedSlot(String)
Tried to do something with a completed slot
Fatal(&'a str)
Any generic fatal error for which we have no specific variant.
Trait Implementations§
Source§impl<'a> Debug for GLLImplementationError<'a>
impl<'a> Debug for GLLImplementationError<'a>
Source§impl<'a> Display for GLLImplementationError<'a>
impl<'a> Display for GLLImplementationError<'a>
Source§impl<'a> Error for GLLImplementationError<'a>
impl<'a> Error for GLLImplementationError<'a>
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<GLLImplementationError<'a>> for GLLError<'a>
impl<'a> From<GLLImplementationError<'a>> for GLLError<'a>
Source§fn from(value: GLLImplementationError<'a>) -> Self
fn from(value: GLLImplementationError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Utf8Error> for GLLImplementationError<'a>
impl<'a> From<Utf8Error> for GLLImplementationError<'a>
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<Value<'a>>> for GLLImplementationError<'a>
impl<'a> From<ValueError<Value<'a>>> for GLLImplementationError<'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 GLLImplementationError<'a>
impl<'a> From<ValueError<Value<Value<'a>>>> for GLLImplementationError<'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> Freeze for GLLImplementationError<'a>
impl<'a> !RefUnwindSafe for GLLImplementationError<'a>
impl<'a> !Send for GLLImplementationError<'a>
impl<'a> !Sync for GLLImplementationError<'a>
impl<'a> Unpin for GLLImplementationError<'a>
impl<'a> !UnwindSafe for GLLImplementationError<'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