pub enum TypeRef<M = String> {
Named {
module: Option<M>,
name: String,
args: Vec<TypeRef<M>>,
},
Tuple(Vec<TypeRef<M>>),
}Expand description
A type as a contract writes it.
Variants§
Named
A named type, through the import bound to module when another
module declares it, applied to args.
Fields
Tuple(Vec<TypeRef<M>>)
A tuple of these types.
Implementations§
Trait Implementations§
impl<M: Eq> Eq for TypeRef<M>
impl<M: PartialEq> StructuralPartialEq for TypeRef<M>
Auto Trait Implementations§
impl<M> Forget for TypeRef<M>
impl<M> Freeze for TypeRef<M>where
M: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeRef<M>>: Freeze,
impl<M> Move for TypeRef<M>
impl<M> RefUnwindSafe for TypeRef<M>where
M: RefUnwindSafe,
impl<M> Send for TypeRef<M>
impl<M> Sync for TypeRef<M>
impl<M> Unpin for TypeRef<M>
impl<M> UnsafeUnpin for TypeRef<M>where
M: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeRef<M>>: UnsafeUnpin,
impl<M> UnwindSafe for TypeRef<M>where
M: UnwindSafe,
RawVecInner: UnwindSafe,
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