pub struct ConvergeOptimization;Expand description
Canonical provenance marker for converge-optimization fact-emitting
suggestors. All in-tree suggestors in this crate share this provenance
string; downstream extensions that build on converge-optimization
declare their own ProvenanceSource.
Trait Implementations§
Source§impl Clone for ConvergeOptimization
impl Clone for ConvergeOptimization
Source§fn clone(&self) -> ConvergeOptimization
fn clone(&self) -> ConvergeOptimization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConvergeOptimization
impl Debug for ConvergeOptimization
Source§impl ProvenanceSource for ConvergeOptimization
impl ProvenanceSource for ConvergeOptimization
Source§fn as_str(&self) -> &'static str
fn as_str(&self) -> &'static str
Canonical lowercase identifier carried on
ProposedFact.provenance. Stable across the extension’s
public API.Source§fn provenance(self) -> Provenance
fn provenance(self) -> Provenance
Construct typed
Provenance from this marker.Source§fn proposed_fact<T>(
self,
key: ContextKey,
id: impl Into<ProposalId>,
payload: T,
) -> ProposedFactwhere
T: FactPayload + PartialEq,
fn proposed_fact<T>(
self,
key: ContextKey,
id: impl Into<ProposalId>,
payload: T,
) -> ProposedFactwhere
T: FactPayload + PartialEq,
Construct a
ProposedFact stamped with this provenance and
a typed payload.impl Copy for ConvergeOptimization
Auto Trait Implementations§
impl Freeze for ConvergeOptimization
impl RefUnwindSafe for ConvergeOptimization
impl Send for ConvergeOptimization
impl Sync for ConvergeOptimization
impl Unpin for ConvergeOptimization
impl UnsafeUnpin for ConvergeOptimization
impl UnwindSafe for ConvergeOptimization
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