pub struct Type {
pub ins: Vec<Scalar>,
pub outs: Vec<Scalar>,
}Expand description
A block/diagram type: the scalar type of each input and output wire.
The vector lengths are the arities. During inference we usually know the
arities as concrete integers; unification only touches the Scalars.
Fields§
§ins: Vec<Scalar>Scalar type of each input wire (len = input arity).
outs: Vec<Scalar>Scalar type of each output wire (len = output arity).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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