Enum GoPrimitiveValue
pub enum GoPrimitiveValue {
Nil,
Bool(bool),
Int(String),
Float(f64),
Complex {
real: f64,
imag: f64,
},
Rune(char),
String(String),
}Expand description
Primitive Go-like value metadata.
Variants§
Implementations§
§impl GoPrimitiveValue
impl GoPrimitiveValue
pub const fn is_numeric(&self) -> bool
pub const fn is_numeric(&self) -> bool
Returns whether this value is numeric metadata.
pub fn is_zero_like(&self) -> bool
pub fn is_zero_like(&self) -> bool
Returns whether this value is zero-like for metadata purposes.
Trait Implementations§
§impl Clone for GoPrimitiveValue
impl Clone for GoPrimitiveValue
§fn clone(&self) -> GoPrimitiveValue
fn clone(&self) -> GoPrimitiveValue
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 more§impl Debug for GoPrimitiveValue
impl Debug for GoPrimitiveValue
§impl PartialEq for GoPrimitiveValue
impl PartialEq for GoPrimitiveValue
impl StructuralPartialEq for GoPrimitiveValue
Auto Trait Implementations§
impl Freeze for GoPrimitiveValue
impl RefUnwindSafe for GoPrimitiveValue
impl Send for GoPrimitiveValue
impl Sync for GoPrimitiveValue
impl Unpin for GoPrimitiveValue
impl UnsafeUnpin for GoPrimitiveValue
impl UnwindSafe for GoPrimitiveValue
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