StartNode in rustc_data_structures::graph - Rust
Description: API documentation for the Rust `StartNode` trait in crate `rustc_data_structures`.

Skip to main content

## StartNode

# Trait StartNode

Source

    pub trait StartNode: DirectedGraph {
        // Required method
        fn start_node(&self) -> Self::Node;
    }

## Required Methods§

Source

#### fn start_node(&self) -> Self::Node

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementations on Foreign Types§

Source§

### impl<'graph, G: StartNode> StartNode for &'graph G

Source§

#### fn start_node(&self) -> Self::Node

## Implementors§