pub struct GosValue { /* private fields */ }
Implementations§
source§impl GosValue
impl GosValue
pub fn typ(&self) -> ValueType
pub fn t_elem(&self) -> ValueType
pub fn copyable(&self) -> bool
pub fn comparable(&self) -> bool
pub fn nilable(&self) -> bool
pub fn new_slice<T>(obj: SliceObj<T>, t_elem: ValueType) -> GosValuewhere T: Element,
pub fn as_bool(&self) -> &bool
pub fn as_int(&self) -> &isize
pub fn as_int8(&self) -> &i8
pub fn as_int16(&self) -> &i16
pub fn as_int32(&self) -> &i32
pub fn as_int64(&self) -> &i64
pub fn as_uint(&self) -> &usize
pub fn as_uint_ptr(&self) -> &usize
pub fn as_uint8(&self) -> &u8
pub fn as_uint16(&self) -> &u16
pub fn as_uint32(&self) -> &u32
pub fn as_uint64(&self) -> &u64
pub fn as_float32(&self) -> &F32
pub fn as_float64(&self) -> &F64
pub fn as_complex64(&self) -> &Complex64
pub fn as_function(&self) -> &FunctionKey
pub fn as_package(&self) -> &PackageKey
pub fn as_metadata(&self) -> &Meta
pub fn as_complex128(&self) -> &Complex128
pub fn as_string(&self) -> &StringObj
pub fn as_gos_array(&self) -> &(GosArrayObj, RCount)
pub fn as_array<T>(&self) -> &(ArrayObj<T>, RCount)
pub fn as_struct(&self) -> &(StructObj, RCount)
pub fn as_pointer(&self) -> Option<&PointerObj>
pub fn as_unsafe_ptr(&self) -> Option<&UnsafePtrObj>
pub fn as_closure(&self) -> Option<&(ClosureObj, RCount)>
pub fn as_slice<T>(&self) -> Option<&(SliceObj<T>, RCount)>
pub fn as_gos_slice(&self) -> Option<&(SliceObj<GosElem>, RCount)>
pub fn as_map(&self) -> Option<&(MapObj, RCount)>
pub fn as_interface(&self) -> Option<&InterfaceObj>
pub fn as_non_nil_pointer(&self) -> RuntimeResult<&PointerObj>
pub fn as_non_nil_unsafe_ptr(&self) -> RuntimeResult<&UnsafePtrObj>
pub fn as_non_nil_closure(&self) -> RuntimeResult<&(ClosureObj, RCount)>
pub fn as_non_nil_slice<T>(&self) -> RuntimeResult<&(SliceObj<T>, RCount)>
pub fn as_non_nil_map(&self) -> RuntimeResult<&(MapObj, RCount)>
pub fn as_non_nil_interface(&self) -> RuntimeResult<&InterfaceObj>
pub fn slice_swap(&self, i: usize, j: usize) -> RuntimeResult<()>
pub fn is_nil(&self) -> bool
pub fn cast_copyable(&self, from: ValueType, to: ValueType) -> GosValue
pub fn as_index(&self) -> usize
pub fn as_addr(&self) -> *const usize
pub fn iface_underlying(&self) -> RuntimeResult<Option<GosValue>>
pub fn slice_string( s: &GosValue, begin: isize, end: isize, max: isize ) -> RuntimeResult<GosValue>
pub fn identical(&self, other: &GosValue) -> bool
pub fn len(&self) -> usize
pub fn cap(&self) -> usize
sourcepub fn ref_sub_one(&self)
pub fn ref_sub_one(&self)
for gc
Trait Implementations§
source§impl AsPrimitive<String> for GosValue
impl AsPrimitive<String> for GosValue
source§impl AsPrimitive<bool> for GosValue
impl AsPrimitive<bool> for GosValue
source§impl AsPrimitive<f32> for GosValue
impl AsPrimitive<f32> for GosValue
source§impl AsPrimitive<f64> for GosValue
impl AsPrimitive<f64> for GosValue
source§impl AsPrimitive<i16> for GosValue
impl AsPrimitive<i16> for GosValue
source§impl AsPrimitive<i32> for GosValue
impl AsPrimitive<i32> for GosValue
source§impl AsPrimitive<i64> for GosValue
impl AsPrimitive<i64> for GosValue
source§impl AsPrimitive<i8> for GosValue
impl AsPrimitive<i8> for GosValue
source§impl AsPrimitive<isize> for GosValue
impl AsPrimitive<isize> for GosValue
source§impl AsPrimitive<u16> for GosValue
impl AsPrimitive<u16> for GosValue
source§impl AsPrimitive<u32> for GosValue
impl AsPrimitive<u32> for GosValue
source§impl AsPrimitive<u64> for GosValue
impl AsPrimitive<u64> for GosValue
source§impl AsPrimitive<u8> for GosValue
impl AsPrimitive<u8> for GosValue
source§impl AsPrimitive<usize> for GosValue
impl AsPrimitive<usize> for GosValue
source§impl Ord for GosValue
impl Ord for GosValue
source§impl PartialEq<GosValue> for GosValue
impl PartialEq<GosValue> for GosValue
source§impl PartialOrd<GosValue> for GosValue
impl PartialOrd<GosValue> for GosValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more