pub struct TypeName(pub &'static [u8]);Expand description
Byte-based specification of a Simplicity type.
Because jets are black boxes, the type inference engine has no access to their source and target types. Therefore, these types need to be specified manually.
The types are written in prefix (aka Polish) notation,
where + and * represent sum and product types, respectively,
and base types are represented by the following:
| char | type |
|---|---|
1 | unit |
2 | single bit |
c | 8-bit word |
s | 16-bit word |
i | 32-bit word |
l | 64-bit word |
h | 256-bit word |
Tuple Fields§
§0: &'static [u8]Implementations§
Trait Implementations§
Source§impl Ord for TypeName
impl Ord for TypeName
Source§impl PartialOrd for TypeName
impl PartialOrd for TypeName
impl Eq for TypeName
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
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