#[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 for Raw
impl PartialOrd for Raw
impl Copy for Raw
impl Eq for Raw
impl StructuralPartialEq for Raw
Auto Trait Implementations§
impl Freeze for Raw
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnwindSafe for Raw
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