pub fn into_iter(self) -> Result<Iterator, VmError> {
        use crate::FromValue as _;

        let target = match self {
            Value::Iterator(iterator) => return Ok(iterator.take()?),
            Value::Vec(vec) => return Ok(vec.borrow_ref()?.into_iterator()),
            Value::Object(object) => return Ok(object.borrow_ref()?.into_iterator()),
            target => target,
        };

        let value = EnvProtocolCaller.call_protocol_fn(Protocol::INTO_ITER, target, ())?;
        Iterator::from_value(value)
    }
/// Convert value into an iterator using the [Protocol::INTO_ITER] protocol.
///
/// Note that this function will always failed if called outside of a
/// virtual machine.
Convert value into an iterator using the [Protocol::INTO_ITER] protocol.
Note that this function will always failed if called outside of a
virtual machine.
Convert value into an iterator using the [ Protocol :: INTO_ITER ] protocol . Note that this function will always failed if called outside of a virtual machine .
pub fn into_iter(self) -> Result<Iterator, VmError> {
        use crate::FromValue as _;
        let target = match self {
            Value::Iterator(iterator) => return Ok(iterator.take()?),
            Value::Vec(vec) => return Ok(vec.borrow_ref()?.into_iterator()),
            Value::Object(object) => return Ok(object.borrow_ref()?.into_iterator()),
            target => target,
        };
        let value = EnvProtocolCaller.call_protocol_fn(Protocol::INTO_ITER, target, ())?;
        Iterator::from_value(value)
    }
pub fn into_iter ( self ) -> Result < Iterator , VmError > { use crate :: FromValue as _ ; let target = match self { Value :: Iterator ( iterator ) => return Ok ( iterator . take ( ) ? ) , Value :: Vec ( vec ) => return Ok ( vec . borrow_ref ( ) ? . into_iterator ( ) ) , Value :: Object ( object ) => return Ok ( object . borrow_ref ( ) ? . into_iterator ( ) ) , target => target , } ; let value = EnvProtocolCaller . call_protocol_fn ( Protocol :: INTO_ITER , target , ( ) ) ? ; Iterator :: from_value ( value ) }
Convert value into an iterator using the [Protocol::INTO_ITER] protocol.
Convert value into an iterator using the [ Protocol :: INTO_ITER ] protocol .
self
self