pub struct InstructionGeneratorParameters {
pub n_extras: usize,
pub external_factor: f64,
pub n_actions: usize,
pub n_inputs: usize,
}Fields§
§n_extras: usize§external_factor: f64§n_actions: usize§n_inputs: usizeImplementations§
Source§impl InstructionGeneratorParameters
impl InstructionGeneratorParameters
pub fn n_registers(&self) -> usize
Trait Implementations§
Source§impl Args for InstructionGeneratorParameters
impl Args for InstructionGeneratorParameters
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for InstructionGeneratorParameters
impl Clone for InstructionGeneratorParameters
Source§fn clone(&self) -> InstructionGeneratorParameters
fn clone(&self) -> InstructionGeneratorParameters
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<'de> Deserialize<'de> for InstructionGeneratorParameters
impl<'de> Deserialize<'de> for InstructionGeneratorParameters
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
Source§impl FromArgMatches for InstructionGeneratorParameters
impl FromArgMatches for InstructionGeneratorParameters
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Generate<InstructionGeneratorParameters, Instruction> for GenerateEngine
impl Generate<InstructionGeneratorParameters, Instruction> for GenerateEngine
fn generate(using: InstructionGeneratorParameters) -> Instruction
Source§impl Mutate<InstructionGeneratorParameters, Instruction> for MutateEngine
impl Mutate<InstructionGeneratorParameters, Instruction> for MutateEngine
fn mutate(instruction: &mut Instruction, using: InstructionGeneratorParameters)
Source§impl PartialEq for InstructionGeneratorParameters
impl PartialEq for InstructionGeneratorParameters
Source§fn eq(&self, other: &InstructionGeneratorParameters) -> bool
fn eq(&self, other: &InstructionGeneratorParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InstructionGeneratorParameters
impl StructuralPartialEq for InstructionGeneratorParameters
Auto Trait Implementations§
impl Freeze for InstructionGeneratorParameters
impl RefUnwindSafe for InstructionGeneratorParameters
impl Send for InstructionGeneratorParameters
impl Sync for InstructionGeneratorParameters
impl Unpin for InstructionGeneratorParameters
impl UnsafeUnpin for InstructionGeneratorParameters
impl UnwindSafe for InstructionGeneratorParameters
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