pub enum EdgeError {
EmptyLabel,
IncompatibleLeftArrowShape(ArrowShape),
IncompatibleRightArrowShape(ArrowShape),
SourceNodeNotFound(String),
DestinationNodeNotFound(String),
MissingSource,
MissingDestination,
MissingId,
InvalidLength,
}Expand description
Enum representing errors related to edges in Mermaid diagrams.
Variants§
EmptyLabel
The provided edge label is empty.
IncompatibleLeftArrowShape(ArrowShape)
The provided left arrow shape is not compatible with the diagram.
IncompatibleRightArrowShape(ArrowShape)
The provided right arrow shape is not compatible with the diagram.
SourceNodeNotFound(String)
The provided source node does not exist in the diagram.
DestinationNodeNotFound(String)
The provided destination node does not exist in the diagram.
MissingSource
The source node is missing.
MissingDestination
The destination node is missing.
MissingId
The edge ID is missing.
InvalidLength
The edge length is invalid (must be > 0).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeError
impl<'de> Deserialize<'de> for EdgeError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for EdgeError
impl Error for EdgeError
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 Ord for EdgeError
impl Ord for EdgeError
Source§impl PartialOrd for EdgeError
impl PartialOrd for EdgeError
impl Eq for EdgeError
impl StructuralPartialEq for EdgeError
Auto Trait Implementations§
impl Freeze for EdgeError
impl RefUnwindSafe for EdgeError
impl Send for EdgeError
impl Sync for EdgeError
impl Unpin for EdgeError
impl UnwindSafe for EdgeError
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