#[non_exhaustive]pub struct Go {
pub header: Cow<'static, str>,
pub layout: Layout,
/* private fields */
}Expand description
Go language exporter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.header: Cow<'static, str>Content written before the generated Go package declaration.
layout: LayoutThe output file layout.
Implementations§
Source§impl Go
impl Go
Sourcepub fn package_name(self, name: impl Into<String>) -> Self
pub fn package_name(self, name: impl Into<String>) -> Self
Sets the generated Go package name.
Sourcepub fn header(self, header: impl Into<Cow<'static, str>>) -> Self
pub fn header(self, header: impl Into<Cow<'static, str>>) -> Self
Sets content written before the generated Go package declaration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Go
impl RefUnwindSafe for Go
impl Send for Go
impl Sync for Go
impl Unpin for Go
impl UnsafeUnpin for Go
impl UnwindSafe for Go
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