#[non_exhaustive]pub enum GraphQueryError {
InvalidPattern {
context: &'static str,
source: PatternError,
},
ZeroFolderDepth,
EmptyCollapseReplacement,
EmptyTitle,
EmptyCollapsedNode {
node: String,
},
}Expand description
Invalid graph query input or a collapse that cannot produce a report node.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPattern
A focus, traversal, or collapse pattern could not be compiled.
Fields
§
source: PatternErrorThe shared pattern compiler’s diagnostic.
ZeroFolderDepth
Folder collapsing requires at least one path component.
EmptyCollapseReplacement
Pattern collapsing needs a non-empty replacement expression.
EmptyTitle
Snapshot titles must contain visible text.
EmptyCollapsedNode
A capture replacement erased a selected node label.
Trait Implementations§
Source§impl Clone for GraphQueryError
impl Clone for GraphQueryError
Source§fn clone(&self) -> GraphQueryError
fn clone(&self) -> GraphQueryError
Returns a copy of the value. Read more
1.0.0 · 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 GraphQueryError
impl Debug for GraphQueryError
Source§impl Display for GraphQueryError
impl Display for GraphQueryError
Source§impl Error for GraphQueryError
impl Error for GraphQueryError
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()
Auto Trait Implementations§
impl Freeze for GraphQueryError
impl RefUnwindSafe for GraphQueryError
impl Send for GraphQueryError
impl Sync for GraphQueryError
impl Unpin for GraphQueryError
impl UnwindSafe for GraphQueryError
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