pub struct AnnotatedResult<T, A> {
pub result: T,
pub annotation: A,
}
Expand description
Store a generic annotation next to the state.
Fields§
§result: T
§annotation: A
Trait Implementations§
Source§impl<T: Clone, A: Clone> Clone for AnnotatedResult<T, A>
impl<T: Clone, A: Clone> Clone for AnnotatedResult<T, A>
Source§fn clone(&self) -> AnnotatedResult<T, A>
fn clone(&self) -> AnnotatedResult<T, A>
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<T, A> YamlDataType for AnnotatedResult<T, A>where
T: YamlDataType,
A: YamlDataType,
impl<T, A> YamlDataType for AnnotatedResult<T, A>where
T: YamlDataType,
A: YamlDataType,
fn create_yaml_object(&self) -> Yaml
Auto Trait Implementations§
impl<T, A> Freeze for AnnotatedResult<T, A>
impl<T, A> RefUnwindSafe for AnnotatedResult<T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A> Send for AnnotatedResult<T, A>
impl<T, A> Sync for AnnotatedResult<T, A>
impl<T, A> Unpin for AnnotatedResult<T, A>
impl<T, A> UnwindSafe for AnnotatedResult<T, A>where
T: UnwindSafe,
A: UnwindSafe,
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