Struct extendr_api::wrapper::Expr[][src]

pub struct Expr<T>(pub T);

Wrapper for creating expression objects.

use extendr_api::prelude::*;
test! {
    let expr = r!(Expr(&[r!(1.), r!("xyz")]));
    assert_eq!(expr.len(), 2);
}

Trait Implementations

impl<T: Clone> Clone for Expr<T>[src]

impl<T: Debug> Debug for Expr<T>[src]

impl<T> From<Expr<T>> for Robj where
    T: IntoIterator,
    T::IntoIter: ExactSizeIterator,
    T::Item: Into<Robj>, 
[src]

fn from(val: Expr<T>) -> Self[src]

Make an expression object from an iterator of Robjs.

use extendr_api::prelude::*;
test! {
    let list_of_ints = r!(Expr(&[1, 2]));
    assert_eq!(list_of_ints.len(), 2);
}

impl<T: PartialEq> PartialEq<Expr<T>> for Expr<T>[src]

impl<T> StructuralPartialEq for Expr<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Expr<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Expr<T> where
    T: Send
[src]

impl<T> Sync for Expr<T> where
    T: Sync
[src]

impl<T> Unpin for Expr<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Expr<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.