pub enum GoType {
Struct {
fields: Vec<GoField>,
},
Interface {
methods: Vec<GoMethod>,
},
Alias(Box<GoType>),
Basic(String),
Array(Box<GoType>),
Slice(Box<GoType>),
Map {
key: Box<GoType>,
value: Box<GoType>,
},
Pointer(Box<GoType>),
}Variants§
Struct
Interface
Alias(Box<GoType>)
Basic(String)
Array(Box<GoType>)
Slice(Box<GoType>)
Map
Pointer(Box<GoType>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoType
impl RefUnwindSafe for GoType
impl Send for GoType
impl Sync for GoType
impl Unpin 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