pub struct OpInterface {
pub needs: BTreeMap<String, String>,
pub yields: BTreeMap<String, String>,
pub results: BTreeMap<String, String>,
}Expand description
SRD-108 Part B — the typed interface an abstract op slot
declares: wires the blueprint scope guarantees (needs),
wires the bound implementation must deliver via captures
(yields), and wires it must deliver by projecting the
result body via result: bindings (results, SRD-109 Part
3), each name -> polydat type name (u64, f64, String,
vec_f32, vec_i64, …). BTreeMaps so the SRD-107 config
digest serializes stably.
Fields§
§needs: BTreeMap<String, String>§yields: BTreeMap<String, String>§results: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for OpInterface
impl Clone for OpInterface
Source§impl Debug for OpInterface
impl Debug for OpInterface
Source§impl Default for OpInterface
impl Default for OpInterface
Source§impl<'de> Deserialize<'de> for OpInterface
impl<'de> Deserialize<'de> for OpInterface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OpInterface
Source§impl PartialEq for OpInterface
impl PartialEq for OpInterface
Source§impl Serialize for OpInterface
impl Serialize for OpInterface
impl StructuralPartialEq for OpInterface
Auto Trait Implementations§
impl Freeze for OpInterface
impl RefUnwindSafe for OpInterface
impl Send for OpInterface
impl Sync for OpInterface
impl Unpin for OpInterface
impl UnsafeUnpin for OpInterface
impl UnwindSafe for OpInterface
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.