#[repr(transparent)]pub struct Raw(pub Value);
Expand description
Wrapper around sys::Value
Tuple Fields
0: Value
Implementations
sourceimpl 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
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
sourceimpl PartialOrd<Raw> for Raw
impl PartialOrd<Raw> for Raw
sourcefn partial_cmp(&self, other: &Raw) -> Option<Ordering>
fn partial_cmp(&self, other: &Raw) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for Raw
impl Eq for Raw
impl StructuralEq for Raw
impl StructuralPartialEq for Raw
Auto Trait Implementations
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnwindSafe for Raw
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more