Struct extendr_api::logical::Bool [−][src]
Bool is a wrapper for i32 in the context of an R's tristate boolean. It can be TRUE, FALSE or NA_LOGICAL.
Implementations
impl Bool
[src]
pub fn to_bool(&self) -> bool
[src]
Convert this Bool to a bool. Note NA will be true.
pub fn from_bool(val: bool) -> Self
[src]
Convert this construct a Bool from a rust boolean.
pub fn is_true(&self) -> bool
[src]
Test if TRUE
pub fn is_false(&self) -> bool
[src]
Test if FALSE
Trait Implementations
impl<'a> AsTypedSlice<'a, Bool> for Robj where
Self: 'a,
[src]
Self: 'a,
fn as_typed_slice(&self) -> Option<&'a [Bool]>
[src]
fn as_typed_slice_mut(&mut self) -> Option<&'a mut [Bool]>
[src]
impl Clone for Bool
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Bool
[src]
impl Debug for Bool
[src]
impl Eq for Bool
[src]
impl From<bool> for Bool
[src]
impl From<i32> for Bool
[src]
impl IsNA for Bool
[src]
impl PartialEq<Bool> for Bool
[src]
impl StructuralEq for Bool
[src]
impl StructuralPartialEq for Bool
[src]
impl ToVectorValue for Bool
[src]
fn sexptype() -> SEXPTYPE
[src]
fn to_logical(&self) -> i32 where
Self: Sized,
[src]
Self: Sized,
fn to_real(&self) -> f64 where
Self: Sized,
[src]
Self: Sized,
fn to_integer(&self) -> i32 where
Self: Sized,
[src]
Self: Sized,
fn to_raw(&self) -> u8 where
Self: Sized,
[src]
Self: Sized,
fn to_sexp(&self) -> SEXP where
Self: Sized,
[src]
Self: Sized,
impl ToVectorValue for &Bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bool
[src]
impl Send for Bool
[src]
impl Sync for Bool
[src]
impl Unpin for Bool
[src]
impl UnwindSafe for Bool
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,