pub struct HistoryEntry { /* private fields */ }Expand description
Structured description of an operation that produced the current value.
Implementations§
Source§impl HistoryEntry
impl HistoryEntry
pub fn new( id: HistoryId, kind: HistoryKind, name: impl Into<String>, ) -> Result<Self, Error>
pub fn id(&self) -> &HistoryId
pub const fn kind(&self) -> HistoryKind
pub fn name(&self) -> &str
pub fn input_kind(&self) -> Option<&str>
pub fn output_kind(&self) -> Option<&str>
pub const fn parameters(&self) -> &BTreeMap<String, Value>
pub fn assumptions(&self) -> &[String]
pub fn losses(&self) -> &[String]
pub fn with_input_kind(self, kind: impl Into<String>) -> Result<Self, Error>
pub fn with_output_kind(self, kind: impl Into<String>) -> Result<Self, Error>
pub fn with_parameters( self, parameters: BTreeMap<String, Value>, ) -> Result<Self, Error>
pub fn with_assumption( self, assumption: impl Into<String>, ) -> Result<Self, Error>
pub fn with_loss(self, loss: impl Into<String>) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HistoryEntry
impl Debug for HistoryEntry
Source§impl PartialEq for HistoryEntry
impl PartialEq for HistoryEntry
Source§fn eq(&self, other: &HistoryEntry) -> bool
fn eq(&self, other: &HistoryEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HistoryEntry
Auto Trait Implementations§
impl Freeze for HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnsafeUnpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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