pub struct ListMut(SEXP);Expand description
Mutable view of an R list (VECSXP).
This is a wrapper type instead of &mut [SEXP] to avoid exposing a raw slice
that could become invalid if list elements are replaced with NULL.
Tuple Fields§
§0: SEXPImplementations§
Source§impl ListMut
impl ListMut
Sourcepub const unsafe fn from_raw(sexp: SEXP) -> Self
pub const unsafe fn from_raw(sexp: SEXP) -> Self
Wrap an existing VECSXP without additional checks.
§Safety
Caller must ensure sexp is a valid VECSXP and remains managed by R.
Trait Implementations§
Source§impl IntoR for ListMut
impl IntoR for ListMut
Source§type Error = Infallible
type Error = Infallible
The error type for fallible conversions. Read more
Source§fn try_into_sexp(self) -> Result<SEXP, Self::Error>
fn try_into_sexp(self) -> Result<SEXP, Self::Error>
Try to convert this value to an R SEXP. Read more
Auto Trait Implementations§
impl Freeze for ListMut
impl RefUnwindSafe for ListMut
impl Send for ListMut
impl Sync for ListMut
impl Unpin for ListMut
impl UnsafeUnpin for ListMut
impl UnwindSafe for ListMut
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