Struct extendr_api::wrapper::Env[][src]

pub struct Env<P, NV> {
    pub parent: P,
    pub names_and_values: NV,
}

Wrapper for creating environments.

Fields

parent: Pnames_and_values: NV

Trait Implementations

impl<P: Clone, NV: Clone> Clone for Env<P, NV>[src]

impl<P: Debug, NV: Debug> Debug for Env<P, NV>[src]

impl<'a, P, NV> From<Env<P, NV>> for Robj where
    P: Into<Robj>,
    NV: IntoIterator + 'a,
    NV::Item: SymPair
[src]

fn from(val: Env<P, NV>) -> Self[src]

Convert a wrapper to an R environment object.

use extendr_api::prelude::*;
test! {
    let names_and_values = (0..100).map(|i| (format!("n{}", i), i));
    let env = Env{parent: global_env(), names_and_values};
    let expr = r!(env);
    assert_eq!(expr.len(), 100);
}

impl<P: PartialEq, NV: PartialEq> PartialEq<Env<P, NV>> for Env<P, NV>[src]

impl<P, NV> StructuralPartialEq for Env<P, NV>[src]

Auto Trait Implementations

impl<P, NV> RefUnwindSafe for Env<P, NV> where
    NV: RefUnwindSafe,
    P: RefUnwindSafe
[src]

impl<P, NV> Send for Env<P, NV> where
    NV: Send,
    P: Send
[src]

impl<P, NV> Sync for Env<P, NV> where
    NV: Sync,
    P: Sync
[src]

impl<P, NV> Unpin for Env<P, NV> where
    NV: Unpin,
    P: Unpin
[src]

impl<P, NV> UnwindSafe for Env<P, NV> where
    NV: UnwindSafe,
    P: 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.