ModuleTransform

Struct ModuleTransform 

Source
pub struct ModuleTransform<T, Y, R, D, S, L, E, P> {
    pub input: Module<T, Y, R, D>,
    pub out: Module<S, L, E, P>,
    pub datum_cache: BTreeMap<Id<D>, Id<P>>,
    pub code_cache: BTreeMap<Id<Fun<T, Y, R, D>>, Id<Fun<S, L, E, P>>>,
}

Fields§

§input: Module<T, Y, R, D>§out: Module<S, L, E, P>§datum_cache: BTreeMap<Id<D>, Id<P>>§code_cache: BTreeMap<Id<Fun<T, Y, R, D>>, Id<Fun<S, L, E, P>>>

Implementations§

Source§

impl<T: Clone, Y: Clone, R: Clone, D: Clone, S, L, E: Default, P> ModuleTransform<T, Y, R, D, S, L, E, P>

Source

pub fn func_value<W: MTBehavior<T, Y, R, D, S, L, E, P>>( &mut self, w: &mut W, f: Id<Fun<T, Y, R, D>>, m: ValueTransMap<T, Y, R, D, S, L, E, P>, a: Id<ValueDef<T, Y, R, D>>, ) -> Id<ValueDef<S, L, E, P>>

Source

pub fn func<W: MTBehavior<T, Y, R, D, S, L, E, P>>( &mut self, w: &mut W, f: Id<Fun<T, Y, R, D>>, ) -> Id<Fun<S, L, E, P>>

Source

pub fn dat<W: MTBehavior<T, Y, R, D, S, L, E, P>>( &mut self, w: &mut W, dd: Id<D>, ) -> Id<P>

Auto Trait Implementations§

§

impl<T, Y, R, D, S, L, E, P> Freeze for ModuleTransform<T, Y, R, D, S, L, E, P>

§

impl<T, Y, R, D, S, L, E, P> RefUnwindSafe for ModuleTransform<T, Y, R, D, S, L, E, P>

§

impl<T, Y, R, D, S, L, E, P> Send for ModuleTransform<T, Y, R, D, S, L, E, P>
where D: Send, P: Send, R: Send, E: Send, T: Send, Y: Send, S: Send, L: Send,

§

impl<T, Y, R, D, S, L, E, P> Sync for ModuleTransform<T, Y, R, D, S, L, E, P>
where D: Sync, P: Sync, R: Sync, E: Sync, T: Sync, Y: Sync, S: Sync, L: Sync,

§

impl<T, Y, R, D, S, L, E, P> Unpin for ModuleTransform<T, Y, R, D, S, L, E, P>
where D: Unpin, P: Unpin, R: Unpin, E: Unpin, T: Unpin, Y: Unpin, S: Unpin, L: Unpin,

§

impl<T, Y, R, D, S, L, E, P> UnwindSafe for ModuleTransform<T, Y, R, D, S, L, E, P>

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> 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, 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.