pub enum GraphvizError {
SyntaxError {
line: i32,
col: usize,
message: String,
file: Option<String>,
},
UnsupportedEngine(String),
UnsupportedFormat(String),
LayoutError {
stage: &'static str,
message: String,
},
AttributeError {
attr: String,
message: String,
},
RenderError(String),
}Expand description
Unified error type for graphviz-pure replacing C Graphviz’s graphviz_exit() and agerr().
Variants§
SyntaxError
A DOT syntax error. message is worded as cgraph’s aagerror (lib/cgraph/scan.l),
e.g. syntax error in line 3 near ';', and line is the line it reports (cgraph’s
int line_num).
Fields
UnsupportedEngine(String)
UnsupportedFormat(String)
LayoutError
AttributeError
RenderError(String)
Trait Implementations§
Source§impl Clone for GraphvizError
impl Clone for GraphvizError
Source§fn clone(&self) -> GraphvizError
fn clone(&self) -> GraphvizError
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 GraphvizError
impl Debug for GraphvizError
Source§impl Display for GraphvizError
impl Display for GraphvizError
Source§impl Error for GraphvizError
impl Error for GraphvizError
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 PartialEq for GraphvizError
impl PartialEq for GraphvizError
impl StructuralPartialEq for GraphvizError
Auto Trait Implementations§
impl Freeze for GraphvizError
impl RefUnwindSafe for GraphvizError
impl Send for GraphvizError
impl Sync for GraphvizError
impl Unpin for GraphvizError
impl UnsafeUnpin for GraphvizError
impl UnwindSafe for GraphvizError
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