pub struct GoOptions {
pub package: Option<String>,
}Expand description
How to emit.
Fields§
§package: Option<String>The Go package clause. Defaults to the spec’s bin, made into an
identifier.
Must satisfy is_valid_package. A caller taking this from a user should
check it and say so; one that does not gets it sanitized, because emitting a
file that cannot compile helps nobody.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoOptions
impl RefUnwindSafe for GoOptions
impl Send for GoOptions
impl Sync for GoOptions
impl Unpin for GoOptions
impl UnsafeUnpin for GoOptions
impl UnwindSafe for GoOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more