pub enum GoValue {
Null,
Bool(bool),
Int(Number<i128>),
Float(GoFloat),
String(String),
List(Vec<GoValue>),
Map(BTreeMap<String, GoValue>),
}Expand description
A generic Go value, as Get and GetStringMap return it.
Variants§
Null
nil, or a nil slice or map.
Bool(bool)
A bool.
Int(Number<i128>)
Any Go integer type; i128 holds every int64 and uint64.
Float(GoFloat)
A float32 or float64.
String(String)
A string.
List(Vec<GoValue>)
A slice or array.
Map(BTreeMap<String, GoValue>)
A map, keys in byte order.
Trait Implementations§
impl StructuralPartialEq for GoValue
Auto Trait Implementations§
impl Freeze for GoValue
impl RefUnwindSafe for GoValue
impl Send for GoValue
impl Sync for GoValue
impl Unpin for GoValue
impl UnsafeUnpin for GoValue
impl UnwindSafe for GoValue
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