pub struct PathCandidate { /* private fields */ }Implementations§
Source§impl PathCandidate
impl PathCandidate
Sourcepub fn new(
node_start: TransportNode,
node_start_id: NodeId,
angle_expected_end: Angle,
stage: Stage,
rules: TransportRules,
) -> Self
pub fn new( node_start: TransportNode, node_start_id: NodeId, angle_expected_end: Angle, stage: Stage, rules: TransportRules, ) -> Self
Create a new path candidate.
Sourcepub fn get_node_start_id(&self) -> NodeId
pub fn get_node_start_id(&self) -> NodeId
Get node id
Sourcepub fn get_site_start(&self) -> Site
pub fn get_site_start(&self) -> Site
Get the start site of the path.
Sourcepub fn angle_expected_end(&self) -> Angle
pub fn angle_expected_end(&self) -> Angle
Get the end site of the path.
Sourcepub fn get_rules(&self) -> &TransportRules
pub fn get_rules(&self) -> &TransportRules
Get rules of the path.
Sourcepub fn determine_next_node(
&self,
site_expected_end: Site,
stage: Stage,
related_nodes: &[(&'_ TransportNode, NodeId)],
related_paths: &[((&'_ TransportNode, NodeId), (&'_ TransportNode, NodeId))],
) -> NextTransportNode
pub fn determine_next_node( &self, site_expected_end: Site, stage: Stage, related_nodes: &[(&'_ TransportNode, NodeId)], related_paths: &[((&'_ TransportNode, NodeId), (&'_ TransportNode, NodeId))], ) -> NextTransportNode
Determine the next node type from related(close) nodes and paths.
Trait Implementations§
Source§impl Clone for PathCandidate
impl Clone for PathCandidate
Source§fn clone(&self) -> PathCandidate
fn clone(&self) -> PathCandidate
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 PathCandidate
impl Debug for PathCandidate
Source§impl Ord for PathCandidate
impl Ord for PathCandidate
Source§impl PartialEq for PathCandidate
impl PartialEq for PathCandidate
Source§impl PartialOrd for PathCandidate
impl PartialOrd for PathCandidate
impl Eq for PathCandidate
impl StructuralPartialEq for PathCandidate
Auto Trait Implementations§
impl Freeze for PathCandidate
impl RefUnwindSafe for PathCandidate
impl Send for PathCandidate
impl Sync for PathCandidate
impl Unpin for PathCandidate
impl UnwindSafe for PathCandidate
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