GraphGeneratableEffect

Struct GraphGeneratableEffect 

Source
pub struct GraphGeneratableEffect<T, E, L> {
    pub value: Option<T>,
    pub error: Option<E>,
    pub logs: L,
}
Expand description

The core effect type for the HKT generative system.

This struct wraps computation results in a monadic context that tracks:

  • The result value (or None if an error occurred)
  • Any error that prevented computation
  • A complete audit log of all operations

§Type Parameters

  • T: The wrapped value type
  • E: The error type (fixed to ModelValidationError in practice)
  • L: The log type (fixed to ModificationLog in practice)

§Design

The value field is Option<T> rather than T to allow representing error states without requiring T: Default. When an error occurs during a monadic operation, the value becomes None and the error is captured.

Fields§

§value: Option<T>

The computation result, or None if an error occurred

§error: Option<E>

Any error that occurred during computation

§logs: L

Complete audit trail of all operations

Trait Implementations§

Source§

impl<T: Clone, E: Clone, L: Clone> Clone for GraphGeneratableEffect<T, E, L>

Source§

fn clone(&self) -> GraphGeneratableEffect<T, E, L>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug, E: Debug, L: Debug> Debug for GraphGeneratableEffect<T, E, L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T, E, L> Freeze for GraphGeneratableEffect<T, E, L>
where L: Freeze, T: Freeze, E: Freeze,

§

impl<T, E, L> RefUnwindSafe for GraphGeneratableEffect<T, E, L>

§

impl<T, E, L> Send for GraphGeneratableEffect<T, E, L>
where L: Send, T: Send, E: Send,

§

impl<T, E, L> Sync for GraphGeneratableEffect<T, E, L>
where L: Sync, T: Sync, E: Sync,

§

impl<T, E, L> Unpin for GraphGeneratableEffect<T, E, L>
where L: Unpin, T: Unpin, E: Unpin,

§

impl<T, E, L> UnwindSafe for GraphGeneratableEffect<T, E, L>
where L: UnwindSafe, T: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Satisfies<NoConstraint> for T