pub struct GraphRoute { /* private fields */ }Expand description
One declared conditional branch and its non-empty successor set.
Implementations§
Source§impl GraphRoute
impl GraphRoute
Sourcepub fn new(
route_id: RouteId,
successors: ReadyNodes,
) -> Result<Self, GraphRouteError>
pub fn new( route_id: RouteId, successors: ReadyNodes, ) -> Result<Self, GraphRouteError>
Constructs one declared route.
§Errors
Returns GraphRouteError::EmptySuccessors when selecting the route
would silently dead-end without a terminal result.
Sourcepub const fn successors(&self) -> &ReadyNodes
pub const fn successors(&self) -> &ReadyNodes
Returns the route’s deterministic successor set.
Trait Implementations§
Source§impl Clone for GraphRoute
impl Clone for GraphRoute
Source§impl Debug for GraphRoute
impl Debug for GraphRoute
Source§impl<'de> Deserialize<'de> for GraphRoute
impl<'de> Deserialize<'de> for GraphRoute
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
impl Eq for GraphRoute
Source§impl JsonSchema for GraphRoute
impl JsonSchema for GraphRoute
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for GraphRoute
impl PartialEq for GraphRoute
Source§impl Serialize for GraphRoute
impl Serialize for GraphRoute
impl StructuralPartialEq for GraphRoute
Auto Trait Implementations§
impl Forget for GraphRoute
impl Freeze for GraphRoute
impl Move for GraphRoute
impl RefUnwindSafe for GraphRoute
impl Send for GraphRoute
impl Sync for GraphRoute
impl Unpin for GraphRoute
impl UnsafeUnpin for GraphRoute
impl UnwindSafe for GraphRoute
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