pub enum MermaidError {
EmptyInput,
ParseError {
line: usize,
message: String,
suggestion: Option<String>,
},
LayoutError(String),
}Expand description
Errors that can occur during mermaid parsing/rendering
Variants§
EmptyInput
Empty input provided
ParseError
Parse error at specific line
LayoutError(String)
Layout error (e.g., cycle detected)
Trait Implementations§
Source§impl Clone for MermaidError
impl Clone for MermaidError
Source§fn clone(&self) -> MermaidError
fn clone(&self) -> MermaidError
Returns a duplicate 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 MermaidError
impl Debug for MermaidError
Source§impl Display for MermaidError
impl Display for MermaidError
Source§impl Error for MermaidError
impl Error for MermaidError
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 MermaidError
impl PartialEq for MermaidError
impl Eq for MermaidError
impl StructuralPartialEq for MermaidError
Auto Trait Implementations§
impl Freeze for MermaidError
impl RefUnwindSafe for MermaidError
impl Send for MermaidError
impl Sync for MermaidError
impl Unpin for MermaidError
impl UnwindSafe for MermaidError
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