#[repr(transparent)]pub struct Raw(pub Value);
Expand description
Wrapper around sys::Value
Tuple Fields§
§0: Value
Implementations§
source§impl Raw
impl Raw
sourcepub unsafe fn as_value(&self) -> Value
pub unsafe fn as_value(&self) -> Value
Convert a Raw
value to Value
, this should only be used in custom value destructors
and other cases where you know the underlying sys::Value
was created using Value::new
or it is not possible for the value to be garbage collected (i.e. inside of a @@noalloc
function or in a custom type finalizer)
sourcepub unsafe fn as_pointer<T>(&self) -> Pointer<T>
pub unsafe fn as_pointer<T>(&self) -> Pointer<T>
Convenience function to access a custom pointer value
Trait Implementations§
source§impl PartialOrd<Raw> for Raw
impl PartialOrd<Raw> for Raw
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