#[non_exhaustive]#[repr(i32)]pub enum Rboolean {
FALSE = 0,
TRUE = 1,
}Expand description
Binary boolean used by many R C APIs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl IntoR for Rboolean
impl IntoR for Rboolean
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 TryCoerce<bool> for Rboolean
impl TryCoerce<bool> for Rboolean
Source§type Error = LogicalCoerceError
type Error = LogicalCoerceError
Error returned when coercion fails.
Source§fn try_coerce(self) -> Result<bool, LogicalCoerceError>
fn try_coerce(self) -> Result<bool, LogicalCoerceError>
Attempt to convert
self into R.Source§impl TryFromSexp for Rboolean
impl TryFromSexp for Rboolean
impl Copy for Rboolean
impl Eq for Rboolean
impl StructuralPartialEq for Rboolean
Auto Trait Implementations§
impl Freeze for Rboolean
impl RefUnwindSafe for Rboolean
impl Send for Rboolean
impl Sync for Rboolean
impl Unpin for Rboolean
impl UnsafeUnpin for Rboolean
impl UnwindSafe for Rboolean
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
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.