pub trait CoordinateSource: Send {
// Provided methods
fn as_feedback(&mut self) -> Option<&mut dyn FeedbackSource> { ... }
fn as_pull(&mut self) -> Option<&mut dyn PullSource> { ... }
}Expand description
A coordinate source the graph executor pulls through (SRD-86). The source
advertises capability decorators; the executor probes them, favoring
the most capable (FeedbackSource) and requiring at least one.
Provided Methods§
Sourcefn as_feedback(&mut self) -> Option<&mut dyn FeedbackSource>
fn as_feedback(&mut self) -> Option<&mut dyn FeedbackSource>
The feedback-driven decorator (adaptive optimizers), or None if this
source ignores objective feedback.
Sourcefn as_pull(&mut self) -> Option<&mut dyn PullSource>
fn as_pull(&mut self) -> Option<&mut dyn PullSource>
The pull-only decorator (sweep / lex / discrete traversal), or None if
this source is feedback-only.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".