pub enum ExprGraphError {
MetadataLength {
node_len: usize,
metadata_len: usize,
},
InvalidRoot {
root: usize,
node_len: usize,
},
InvalidChild {
node: usize,
child: usize,
},
InvalidChildOrder {
node: usize,
child: usize,
},
Empty,
}Expand description
Structural validation errors for serialized expression graphs.
Variants§
MetadataLength
The node and metadata arrays had different lengths.
InvalidRoot
The root identifier was outside the node array.
InvalidChild
A node referenced a child outside the node array.
InvalidChildOrder
A node referenced a child stored after its parent.
Empty
The graph contained no nodes.
Trait Implementations§
Source§impl Clone for ExprGraphError
impl Clone for ExprGraphError
Source§fn clone(&self) -> ExprGraphError
fn clone(&self) -> ExprGraphError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExprGraphError
impl Debug for ExprGraphError
Source§impl Display for ExprGraphError
impl Display for ExprGraphError
impl Eq for ExprGraphError
Source§impl Error for ExprGraphError
impl Error for ExprGraphError
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<ExprGraphError> for ExprError
impl From<ExprGraphError> for ExprError
Source§fn from(source: ExprGraphError) -> Self
fn from(source: ExprGraphError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExprGraphError
impl PartialEq for ExprGraphError
impl StructuralPartialEq for ExprGraphError
Auto Trait Implementations§
impl Freeze for ExprGraphError
impl RefUnwindSafe for ExprGraphError
impl Send for ExprGraphError
impl Sync for ExprGraphError
impl Unpin for ExprGraphError
impl UnsafeUnpin for ExprGraphError
impl UnwindSafe for ExprGraphError
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