pub enum GoType {
}Expand description
Go type representation for type-directed code generation.
Variants§
GoBool
bool
GoInt
int64
GoFloat
float64
GoString
string
GoSlice(Box<GoType>)
[]T — a Go slice
GoMap(Box<GoType>, Box<GoType>)
map[K]V — a Go map
GoFunc(Vec<GoType>, Vec<GoType>)
func(params...) returns...
GoInterface
interface{} / any
GoStruct(String)
A named struct: MyStruct
GoPtr(Box<GoType>)
A pointer: *T
GoChan(Box<GoType>)
Channel: chan T
GoError
error interface
GoUnit
Unit (represented as an empty struct struct{})
Trait Implementations§
impl Eq for GoType
impl StructuralPartialEq for GoType
Auto Trait Implementations§
impl Freeze for GoType
impl RefUnwindSafe for GoType
impl Send for GoType
impl Sync for GoType
impl Unpin for GoType
impl UnsafeUnpin for GoType
impl UnwindSafe for GoType
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