pub struct ExpectWithProbabilityOperation<'c> { /* private fields */ }
Expand description
An intr.expect.with.probability
operation.
Implementations§
source§impl<'c> ExpectWithProbabilityOperation<'c>
impl<'c> ExpectWithProbabilityOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ExpectWithProbabilityOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ExpectWithProbabilityOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn val(&self) -> Result<Value<'c, '_>, Error>
pub fn expected(&self) -> Result<Value<'c, '_>, Error>
pub fn prob(&self) -> Result<FloatAttribute<'c>, Error>
pub fn set_prob(&mut self, value: FloatAttribute<'c>)
Trait Implementations§
source§impl<'c> From<ExpectWithProbabilityOperation<'c>> for Operation<'c>
impl<'c> From<ExpectWithProbabilityOperation<'c>> for Operation<'c>
source§fn from(operation: ExpectWithProbabilityOperation<'c>) -> Self
fn from(operation: ExpectWithProbabilityOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ExpectWithProbabilityOperation<'c>
impl<'c> !Send for ExpectWithProbabilityOperation<'c>
impl<'c> !Sync for ExpectWithProbabilityOperation<'c>
impl<'c> Unpin for ExpectWithProbabilityOperation<'c>
impl<'c> UnwindSafe for ExpectWithProbabilityOperation<'c>
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