#[repr(C)]pub struct RDebugView {
pub data: *mut c_void,
pub vtable: *const RDebugVTable,
}Expand description
Runtime view for objects implementing RDebug.
Generated from source location line 55, column 11.
Generated from source file miniextendr-api/src/adapter_traits.rs.
Combines a data pointer with a vtable pointer for method dispatch.
Use try_from_sexp to create a view from an R external pointer.
Fields§
§data: *mut c_voidPointer to the concrete object data.
vtable: *const RDebugVTablePointer to the vtable for this trait.
Implementations§
Source§impl RDebugView
impl RDebugView
Sourcepub unsafe fn try_from_sexp(sexp: SEXP) -> Option<Self>
pub unsafe fn try_from_sexp(sexp: SEXP) -> Option<Self>
Try to create a view from an R SEXP.
Returns Some(Self) if the object implements this trait,
None otherwise.
§Safety
sexpmust be a valid R external pointer (EXTPTRSXP)- Must be called on R’s main thread
Sourcepub fn debug_str_pretty(&self) -> String
pub fn debug_str_pretty(&self) -> String
Call debug_str_pretty through the vtable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RDebugView
impl RefUnwindSafe for RDebugView
impl !Send for RDebugView
impl !Sync for RDebugView
impl Unpin for RDebugView
impl UnsafeUnpin for RDebugView
impl UnwindSafe for RDebugView
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