pub enum GoNilForm {
Never,
Pointer,
Interface,
}Expand description
True when the Go representation carries nil, so an Option over it
encodes None as nil instead of a tag.
Variants§
Trait Implementations§
impl Copy for GoNilForm
impl Eq for GoNilForm
impl StructuralPartialEq for GoNilForm
Auto Trait Implementations§
impl Forget for GoNilForm
impl Freeze for GoNilForm
impl Move for GoNilForm
impl RefUnwindSafe for GoNilForm
impl Send for GoNilForm
impl Sync for GoNilForm
impl Unpin for GoNilForm
impl UnsafeUnpin for GoNilForm
impl UnwindSafe for GoNilForm
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