pub enum LayoutError {
Show 17 variants
DuplicateLayoutEngine(LayoutEngineId),
DuplicateLayoutFamily(LayoutFamilyId),
DuplicateLayoutEngineMetadata(LayoutEngineId),
MissingLayoutEngine(LayoutEngineId),
InvalidDefaultNodeSize(CanvasSize),
InvalidSpacing(LayoutSpacing),
InvalidMargin(CanvasSize),
InvalidNodeSize {
node: NodeId,
size: CanvasSize,
},
MissingScopeNode(NodeId),
MissingSourcePort(EdgeId),
MissingTargetPort(EdgeId),
MissingSourceNode {
edge: EdgeId,
},
MissingTargetNode {
edge: EdgeId,
},
MissingNodePosition(NodeId),
DuplicateResultNode(NodeId),
MissingTransactionNode(NodeId),
NonFiniteNodePosition {
node: NodeId,
x: f64,
y: f64,
},
}Expand description
Errors reported by layout projection, registry lookup, or layout output conversion.
Variants§
DuplicateLayoutEngine(LayoutEngineId)
DuplicateLayoutFamily(LayoutFamilyId)
DuplicateLayoutEngineMetadata(LayoutEngineId)
MissingLayoutEngine(LayoutEngineId)
InvalidDefaultNodeSize(CanvasSize)
InvalidSpacing(LayoutSpacing)
InvalidMargin(CanvasSize)
InvalidNodeSize
MissingScopeNode(NodeId)
MissingSourcePort(EdgeId)
MissingTargetPort(EdgeId)
MissingSourceNode
MissingTargetNode
MissingNodePosition(NodeId)
DuplicateResultNode(NodeId)
MissingTransactionNode(NodeId)
NonFiniteNodePosition
Trait Implementations§
Source§impl Debug for LayoutError
impl Debug for LayoutError
Source§impl Display for LayoutError
impl Display for LayoutError
Source§impl Error for LayoutError
impl Error for LayoutError
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<LayoutError> for LayoutApplyError
impl From<LayoutError> for LayoutApplyError
Source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for DugongLayoutApplyError
impl From<LayoutError> for DugongLayoutApplyError
Source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LayoutError
impl PartialEq for LayoutError
Source§fn eq(&self, other: &LayoutError) -> bool
fn eq(&self, other: &LayoutError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutError
Auto Trait Implementations§
impl Freeze for LayoutError
impl RefUnwindSafe for LayoutError
impl Send for LayoutError
impl Sync for LayoutError
impl Unpin for LayoutError
impl UnsafeUnpin for LayoutError
impl UnwindSafe for LayoutError
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