pub struct GoTypeDecl {
pub name: String,
pub fields: Vec<(String, GoType)>,
pub exported: bool,
}Expand description
A Go struct type declaration.
Fields§
§name: StringType name.
fields: Vec<(String, GoType)>Fields: [(field_name, field_type), ...].
exported: boolWhether exported.
Implementations§
Trait Implementations§
Source§impl Clone for GoTypeDecl
impl Clone for GoTypeDecl
Source§fn clone(&self) -> GoTypeDecl
fn clone(&self) -> GoTypeDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GoTypeDecl
impl RefUnwindSafe for GoTypeDecl
impl Send for GoTypeDecl
impl Sync for GoTypeDecl
impl Unpin for GoTypeDecl
impl UnsafeUnpin for GoTypeDecl
impl UnwindSafe for GoTypeDecl
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