#[repr(C)]pub struct Rcomplex {
pub r: f64,
pub i: f64,
}Expand description
R’s complex scalar layout (Rcomplex).
Fields§
§r: f64Real part.
i: f64Imaginary part.
Trait Implementations§
Source§impl IntoR for Rcomplex
impl IntoR for Rcomplex
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
Source§unsafe fn try_into_sexp_unchecked(self) -> Result<SEXP, Self::Error>
unsafe fn try_into_sexp_unchecked(self) -> Result<SEXP, Self::Error>
Try to convert to SEXP without thread safety checks. Read more
Source§unsafe fn into_sexp_unchecked(self) -> SEXP
unsafe fn into_sexp_unchecked(self) -> SEXP
Convert to SEXP without thread safety checks, panicking on error. Read more
Source§impl RNativeType for Rcomplex
impl RNativeType for Rcomplex
Source§impl TryFromSexp for &'static Rcomplex
impl TryFromSexp for &'static Rcomplex
Source§impl TryFromSexp for &'static mut Rcomplex
§Safety note (aliasing)
This impl can produce aliased &mut references if the same R object
is passed to multiple mutable parameters. The caller (generated wrapper)
is responsible for ensuring no two &mut borrows alias the same SEXP.
impl TryFromSexp for &'static mut Rcomplex
§Safety note (aliasing)
This impl can produce aliased &mut references if the same R object
is passed to multiple mutable parameters. The caller (generated wrapper)
is responsible for ensuring no two &mut borrows alias the same SEXP.
Source§impl TryFromSexp for Rcomplex
impl TryFromSexp for Rcomplex
impl Copy for Rcomplex
impl StructuralPartialEq for Rcomplex
Auto Trait Implementations§
impl Freeze for Rcomplex
impl RefUnwindSafe for Rcomplex
impl Send for Rcomplex
impl Sync for Rcomplex
impl Unpin for Rcomplex
impl UnsafeUnpin for Rcomplex
impl UnwindSafe for Rcomplex
Blanket Implementations§
Source§impl<T> AsRNativeExt for Twhere
T: RNativeType,
impl<T> AsRNativeExt for Twhere
T: RNativeType,
Source§fn wrap_r_native(self) -> AsRNative<Self>
fn wrap_r_native(self) -> AsRNative<Self>
Wrap
self in AsRNative for native R scalar conversion.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, R> TryCoerce<R> for Twhere
T: Coerce<R>,
impl<T, R> TryCoerce<R> for Twhere
T: Coerce<R>,
Source§type Error = Infallible
type Error = Infallible
Error returned when coercion fails.