MCPcopy Create free account
hub / github.com/circify/circ / declare_input

Method declare_input

src/circify/mod.rs:468–487  ·  view source on GitHub ↗

Declare a new *input* to the computation. See [Embeddable::declare_input] ## Arguments nice_name: the in-program name of the input ty: the type visibility: who should know this input mangle_name: if true, then creates a unique version of nice_name, and declares that. Otherwise, uses nice_name.

(
        &mut self,
        nice_name: VarName,
        ty: &E::Ty,
        visibility: Option<PartyId>,
        precomputed_value: Option<E::T>,
        mangle_name: bool,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

trialFunction · 0.45

Calls 4

declare_env_nameMethod · 0.80
new_varMethod · 0.80
mapMethod · 0.80
cloneMethod · 0.45

Tested by 1

trialFunction · 0.36