pub(crate) fn new_static_object_keys_iter<I>(
        &self,
        span: Span,
        current: I,
    ) -> Result<usize, CompileError>
    where
        I: IntoIterator,
        I::Item: AsRef<str>,
    {
        let current = current
            .into_iter()
            .map(|s| s.as_ref().to_owned())
            .collect::<Box<_>>();

        self.new_static_object_keys(span, current)
    }
/// Insert a new collection of static object keys, or return one already
/// existing.
Insert a new collection of static object keys, or return one already
existing.
Insert a new collection of static object keys or return one already existing .
pub(crate) fn new_static_object_keys_iter<I>(
        &self,
        span: Span,
        current: I,
    ) -> Result<usize, CompileError>
    where
        I: IntoIterator,
        I::Item: AsRef<str>,
    {
        let current = current
            .into_iter()
            .map(|s| s.as_ref().to_owned())
            .collect::<Box<_>>();
        self.new_static_object_keys(span, current)
    }
pub ( crate ) fn new_static_object_keys_iter < I > ( & self , span : Span , current : I , ) -> Result < usize , CompileError > where I : IntoIterator , I :: Item : AsRef < str > , { let current = current . into_iter ( ) . map ( | s | s . as_ref ( ) . to_owned ( ) ) . collect :: < Box < _ > > ( ) ; self . new_static_object_keys ( span , current ) }
Insert a new collection of static object keys, or return one already
existing.
Insert a new collection of static object keys or return one already existing .
&self
span
Span
current
I
&self
span
Span
current
I