[][src]Function glsp::tab_from_iter

pub fn tab_from_iter<T, K, V>(iter: T) -> Result<Root<Tab>, GError> where
    K: ToVal,
    T: IntoIterator<Item = (K, V)>,
    V: ToVal

Constructs a table from the key/value pairs in a Rust iterator.

Duplicate keys are permitted.

Returns an Err if type conversion fails for any key or value.