pub struct ConfigBasedOperatorProvider { /* private fields */ }Expand description
Config から Operator を構築する Provider
Implementations§
Source§impl ConfigBasedOperatorProvider
impl ConfigBasedOperatorProvider
pub fn new(config: OperatorConfig) -> ConfigBasedOperatorProvider
Sourcepub fn fifo() -> ConfigBasedOperatorProvider
pub fn fifo() -> ConfigBasedOperatorProvider
FIFO 設定で生成
Sourcepub fn ucb1(c: f64) -> ConfigBasedOperatorProvider
pub fn ucb1(c: f64) -> ConfigBasedOperatorProvider
UCB1 設定で生成
Sourcepub fn config(&self) -> &OperatorConfig
pub fn config(&self) -> &OperatorConfig
Config を取得
Trait Implementations§
Source§impl Clone for ConfigBasedOperatorProvider
impl Clone for ConfigBasedOperatorProvider
Source§fn clone(&self) -> ConfigBasedOperatorProvider
fn clone(&self) -> ConfigBasedOperatorProvider
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 ConfigBasedOperatorProvider
impl Debug for ConfigBasedOperatorProvider
Source§impl<R> OperatorProvider<R> for ConfigBasedOperatorProviderwhere
R: Rules + 'static,
impl<R> OperatorProvider<R> for ConfigBasedOperatorProviderwhere
R: Rules + 'static,
Source§fn provide(
&self,
rules: R,
_context: Option<&ProviderContext<'_, ActionNodeData, String, MapNodeState>>,
) -> Operator<RulesBasedMutation, AnySelection, ActionNodeData, String, MapNodeState, R>
fn provide( &self, rules: R, _context: Option<&ProviderContext<'_, ActionNodeData, String, MapNodeState>>, ) -> Operator<RulesBasedMutation, AnySelection, ActionNodeData, String, MapNodeState, R>
Operator を構築
Source§fn reevaluate(
&self,
_operator: &mut Operator<RulesBasedMutation, AnySelection, ActionNodeData, String, MapNodeState, R>,
_context: &ProviderContext<'_, ActionNodeData, String, MapNodeState>,
)
fn reevaluate( &self, _operator: &mut Operator<RulesBasedMutation, AnySelection, ActionNodeData, String, MapNodeState, R>, _context: &ProviderContext<'_, ActionNodeData, String, MapNodeState>, )
Selection を再評価して切り替え
Auto Trait Implementations§
impl Freeze for ConfigBasedOperatorProvider
impl RefUnwindSafe for ConfigBasedOperatorProvider
impl Send for ConfigBasedOperatorProvider
impl Sync for ConfigBasedOperatorProvider
impl Unpin for ConfigBasedOperatorProvider
impl UnwindSafe for ConfigBasedOperatorProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more