pub trait TryFromList: Sized {
type Error;
// Required method
fn try_from_list(list: List) -> Result<Self, Self::Error>;
}Expand description
Fallible conversion from an R list into a Rust value.
Required Associated Types§
Required Methods§
Sourcefn try_from_list(list: List) -> Result<Self, Self::Error>
fn try_from_list(list: List) -> Result<Self, Self::Error>
Attempt to convert an R list wrapper into Self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp, J: TryFromSexp, K: TryFromSexp, L: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I, J, K, L)where
A::Error: Into<SexpError>,
B::Error: Into<SexpError>,
C::Error: Into<SexpError>,
D::Error: Into<SexpError>,
E::Error: Into<SexpError>,
F::Error: Into<SexpError>,
G::Error: Into<SexpError>,
H::Error: Into<SexpError>,
I::Error: Into<SexpError>,
J::Error: Into<SexpError>,
K::Error: Into<SexpError>,
L::Error: Into<SexpError>,
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp, J: TryFromSexp, K: TryFromSexp, L: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I, J, K, L)where
A::Error: Into<SexpError>,
B::Error: Into<SexpError>,
C::Error: Into<SexpError>,
D::Error: Into<SexpError>,
E::Error: Into<SexpError>,
F::Error: Into<SexpError>,
G::Error: Into<SexpError>,
H::Error: Into<SexpError>,
I::Error: Into<SexpError>,
J::Error: Into<SexpError>,
K::Error: Into<SexpError>,
L::Error: Into<SexpError>,
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp, J: TryFromSexp, K: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I, J, K)where
A::Error: Into<SexpError>,
B::Error: Into<SexpError>,
C::Error: Into<SexpError>,
D::Error: Into<SexpError>,
E::Error: Into<SexpError>,
F::Error: Into<SexpError>,
G::Error: Into<SexpError>,
H::Error: Into<SexpError>,
I::Error: Into<SexpError>,
J::Error: Into<SexpError>,
K::Error: Into<SexpError>,
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp, J: TryFromSexp, K: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I, J, K)where
A::Error: Into<SexpError>,
B::Error: Into<SexpError>,
C::Error: Into<SexpError>,
D::Error: Into<SexpError>,
E::Error: Into<SexpError>,
F::Error: Into<SexpError>,
G::Error: Into<SexpError>,
H::Error: Into<SexpError>,
I::Error: Into<SexpError>,
J::Error: Into<SexpError>,
K::Error: Into<SexpError>,
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp, J: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I, J)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp, J: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I, J)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp, I: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H, I)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp, H: TryFromSexp> TryFromList for (A, B, C, D, E, F, G, H)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp> TryFromList for (A, B, C, D, E, F, G)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp, G: TryFromSexp> TryFromList for (A, B, C, D, E, F, G)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp> TryFromList for (A, B, C, D, E, F)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp, F: TryFromSexp> TryFromList for (A, B, C, D, E, F)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp> TryFromList for (A, B, C, D, E)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp, E: TryFromSexp> TryFromList for (A, B, C, D, E)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp> TryFromList for (A, B, C, D)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp, D: TryFromSexp> TryFromList for (A, B, C, D)
Source§impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp> TryFromList for (A, B, C)
impl<A: TryFromSexp, B: TryFromSexp, C: TryFromSexp> TryFromList for (A, B, C)
Source§impl<A: TryFromSexp, B: TryFromSexp> TryFromList for (A, B)
impl<A: TryFromSexp, B: TryFromSexp> TryFromList for (A, B)
Source§impl<A: TryFromSexp> TryFromList for (A,)
impl<A: TryFromSexp> TryFromList for (A,)
Source§impl<T> TryFromList for BTreeSet<T>
impl<T> TryFromList for BTreeSet<T>
Source§impl<T> TryFromList for HashSet<T>
impl<T> TryFromList for HashSet<T>
Source§impl<T> TryFromList for Vec<T>where
T: TryFromSexp<Error = SexpError>,
impl<T> TryFromList for Vec<T>where
T: TryFromSexp<Error = SexpError>,
Source§impl<V> TryFromList for BTreeMap<String, V>where
V: TryFromSexp<Error = SexpError>,
Keys are the element names; an element without a usable name (no names
attribute, NA, or not valid UTF-8) is keyed by its 0-based position, and
empty names share the key "" (the last one wins). A non-empty name that
appears more than once is an error (SexpError::DuplicateName), as for
the TryFromSexp map conversion.
impl<V> TryFromList for BTreeMap<String, V>where
V: TryFromSexp<Error = SexpError>,
Keys are the element names; an element without a usable name (no names
attribute, NA, or not valid UTF-8) is keyed by its 0-based position, and
empty names share the key "" (the last one wins). A non-empty name that
appears more than once is an error (SexpError::DuplicateName), as for
the TryFromSexp map conversion.
Source§impl<V> TryFromList for HashMap<String, V>where
V: TryFromSexp<Error = SexpError>,
Keys are the element names; an element without a usable name (no names
attribute, NA, or not valid UTF-8) is keyed by its 0-based position, and
empty names share the key "" (the last one wins). A non-empty name that
appears more than once is an error (SexpError::DuplicateName), as for
the TryFromSexp map conversion.
impl<V> TryFromList for HashMap<String, V>where
V: TryFromSexp<Error = SexpError>,
Keys are the element names; an element without a usable name (no names
attribute, NA, or not valid UTF-8) is keyed by its 0-based position, and
empty names share the key "" (the last one wins). A non-empty name that
appears more than once is an error (SexpError::DuplicateName), as for
the TryFromSexp map conversion.