#[non_exhaustive]pub struct SampledDecisionVariable {
pub decision_variable: Option<DecisionVariable>,
pub samples: Option<SampledValues>,
}Expand description
A pair of decision variable description and its sampled values
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.decision_variable: Option<DecisionVariable>§samples: Option<SampledValues>Sampled values of decision variable.
This becomes None if the decision variable is not sampled.
Trait Implementations§
Source§impl Clone for SampledDecisionVariable
impl Clone for SampledDecisionVariable
Source§fn clone(&self) -> SampledDecisionVariable
fn clone(&self) -> SampledDecisionVariable
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 SampledDecisionVariable
impl Debug for SampledDecisionVariable
Source§impl Default for SampledDecisionVariable
impl Default for SampledDecisionVariable
Source§impl From<SampledDecisionVariable> for SampledDecisionVariable
impl From<SampledDecisionVariable> for SampledDecisionVariable
Source§fn from(sampled_dv: SampledDecisionVariable) -> Self
fn from(sampled_dv: SampledDecisionVariable) -> Self
Converts to this type from the input type.
Source§impl Message for SampledDecisionVariable
impl Message for SampledDecisionVariable
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl Parse for SampledDecisionVariable
impl Parse for SampledDecisionVariable
Source§impl PartialEq for SampledDecisionVariable
impl PartialEq for SampledDecisionVariable
Source§impl TryFrom<SampledDecisionVariable> for SampledDecisionVariable
impl TryFrom<SampledDecisionVariable> for SampledDecisionVariable
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl StructuralPartialEq for SampledDecisionVariable
Auto Trait Implementations§
impl Freeze for SampledDecisionVariable
impl RefUnwindSafe for SampledDecisionVariable
impl Send for SampledDecisionVariable
impl Sync for SampledDecisionVariable
impl Unpin for SampledDecisionVariable
impl UnsafeUnpin for SampledDecisionVariable
impl UnwindSafe for SampledDecisionVariable
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> 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