Struct extendr_api::wrapper::Lang[][src]

pub struct Lang<T>(pub T);

Wrapper for creating language objects.

use extendr_api::prelude::*;
test! {
    let call_to_xyz = r!(Lang(&[r!(Symbol("xyz")), r!(1), r!(2)]));
    assert_eq!(call_to_xyz.is_language(), true);
    assert_eq!(call_to_xyz.len(), 3);
}

Note: You can use the lang! macro for this.

Trait Implementations

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

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

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

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

Convert a wrapper to an R language object.

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

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for Lang<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.