pub struct EngineAlgorithmId { /* private fields */ }Expand description
Combined engine + algorithm identifier for explicit layout engine selection. Combined engine+algorithm identifier for explicit layout engine selection.
Implementations§
Source§impl EngineAlgorithmId
impl EngineAlgorithmId
pub const FLUX_LAYERED: Self
pub const MERMAID_LAYERED: Self
pub const ELK_LAYERED: Self
pub const ELK_MRTREE: Self
Sourcepub const fn new(engine: EngineId, algorithm: AlgorithmId) -> Self
pub const fn new(engine: EngineId, algorithm: AlgorithmId) -> Self
Create an explicit engine + algorithm selection.
Sourcepub const fn engine(self) -> EngineId
pub const fn engine(self) -> EngineId
Return the engine half of the engine-algorithm identifier.
Sourcepub const fn algorithm(self) -> AlgorithmId
pub const fn algorithm(self) -> AlgorithmId
Return the algorithm half of the engine-algorithm identifier.
Sourcepub fn parse(s: &str) -> Result<Self, RenderError>
pub fn parse(s: &str) -> Result<Self, RenderError>
Parse an engine-algorithm ID string (case-insensitive, trims whitespace).
Source§impl EngineAlgorithmId
impl EngineAlgorithmId
pub fn descriptor(self) -> &'static EngineAlgorithmDescriptor
Sourcepub fn capabilities(self) -> EngineAlgorithmCapabilities
pub fn capabilities(self) -> EngineAlgorithmCapabilities
Static capability matrix for this engine+algorithm combination.
Sourcepub fn check_available(self) -> Result<(), RenderError>
pub fn check_available(self) -> Result<(), RenderError>
Check whether this engine-algorithm combination is available at runtime.
Sourcepub fn check_routing_style(
self,
routing_style: Option<RoutingStyle>,
) -> Result<(), RenderError>
pub fn check_routing_style( self, routing_style: Option<RoutingStyle>, ) -> Result<(), RenderError>
Validate that the requested routing style is supported by this engine.
Sourcepub fn edge_routing_for_style(
self,
routing_style: Option<RoutingStyle>,
) -> EdgeRouting
pub fn edge_routing_for_style( self, routing_style: Option<RoutingStyle>, ) -> EdgeRouting
Resolve the concrete routing algorithm for a requested routing style.
Trait Implementations§
Source§impl Clone for EngineAlgorithmId
impl Clone for EngineAlgorithmId
Source§fn clone(&self) -> EngineAlgorithmId
fn clone(&self) -> EngineAlgorithmId
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 EngineAlgorithmId
impl Debug for EngineAlgorithmId
Source§impl Display for EngineAlgorithmId
impl Display for EngineAlgorithmId
Source§impl FromStr for EngineAlgorithmId
impl FromStr for EngineAlgorithmId
Source§impl Hash for EngineAlgorithmId
impl Hash for EngineAlgorithmId
Source§impl PartialEq for EngineAlgorithmId
impl PartialEq for EngineAlgorithmId
impl Copy for EngineAlgorithmId
impl Eq for EngineAlgorithmId
impl StructuralPartialEq for EngineAlgorithmId
Auto Trait Implementations§
impl Freeze for EngineAlgorithmId
impl RefUnwindSafe for EngineAlgorithmId
impl Send for EngineAlgorithmId
impl Sync for EngineAlgorithmId
impl Unpin for EngineAlgorithmId
impl UnsafeUnpin for EngineAlgorithmId
impl UnwindSafe for EngineAlgorithmId
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