pub struct ExampleBuilder { /* private fields */ }Expand description
Builder for synthesis examples
Implementations§
Source§impl ExampleBuilder
impl ExampleBuilder
Sourcepub fn with_scalar_input(self, value: f64) -> Self
pub fn with_scalar_input(self, value: f64) -> Self
Add scalar input
Sourcepub fn with_vector_input(self, values: Vec<f64>) -> Self
pub fn with_vector_input(self, values: Vec<f64>) -> Self
Add vector input
Sourcepub fn with_scalar_output(self, value: f64) -> Self
pub fn with_scalar_output(self, value: f64) -> Self
Add scalar output
Sourcepub fn with_vector_output(self, values: Vec<f64>) -> Self
pub fn with_vector_output(self, values: Vec<f64>) -> Self
Add vector output
Sourcepub fn build(self) -> SynthesisExample
pub fn build(self) -> SynthesisExample
Build the example
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExampleBuilder
impl RefUnwindSafe for ExampleBuilder
impl Send for ExampleBuilder
impl Sync for ExampleBuilder
impl Unpin for ExampleBuilder
impl UnsafeUnpin for ExampleBuilder
impl UnwindSafe for ExampleBuilder
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> 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