pub fn into_iterator(self) -> Result<Iterator, Panic> {
        match (self.limits, self.start, self.end) {
            (RangeLimits::HalfOpen, Some(Value::Integer(start)), Some(Value::Integer(end))) => {
                return Ok(Iterator::from_double_ended("std::ops::Range", start..end));
            }
            (RangeLimits::Closed, Some(Value::Integer(start)), Some(Value::Integer(end))) => {
                return Ok(Iterator::from_double_ended(
                    "std::ops::RangeToInclusive",
                    start..=end,
                ));
            }
            (_, Some(Value::Integer(start)), None) => {
                return Ok(Iterator::from("std::ops::RangeFrom", start..));
            }
            _ => (),
        }

        Err(Panic::custom("not an iterator"))
    }
/// Coerce range into an iterator.
Coerce range into an iterator.
Coerce range into an iterator .
pub fn into_iterator(self) -> Result<Iterator, Panic> {
        match (self.limits, self.start, self.end) {
            (RangeLimits::HalfOpen, Some(Value::Integer(start)), Some(Value::Integer(end))) => {
                return Ok(Iterator::from_double_ended("std::ops::Range", start..end));
            }
            (RangeLimits::Closed, Some(Value::Integer(start)), Some(Value::Integer(end))) => {
                return Ok(Iterator::from_double_ended(
                    "std::ops::RangeToInclusive",
                    start..=end,
                ));
            }
            (_, Some(Value::Integer(start)), None) => {
                return Ok(Iterator::from("std::ops::RangeFrom", start..));
            }
            _ => (),
        }
        Err(Panic::custom("not an iterator"))
    }
pub fn into_iterator ( self ) -> Result < Iterator , Panic > { match ( self . limits , self . start , self . end ) { ( RangeLimits :: HalfOpen , Some ( Value :: Integer ( start ) ) , Some ( Value :: Integer ( end ) ) ) => { return Ok ( Iterator :: from_double_ended ( " " , start .. end ) ) ; } ( RangeLimits :: Closed , Some ( Value :: Integer ( start ) ) , Some ( Value :: Integer ( end ) ) ) => { return Ok ( Iterator :: from_double_ended ( " " , start ..= end , ) ) ; } ( _ , Some ( Value :: Integer ( start ) ) , None ) => { return Ok ( Iterator :: from ( " " , start .. ) ) ; } _ => ( ) , } Err ( Panic :: custom ( " " ) ) }
Coerce range into an iterator.
Coerce range into an iterator .
self
self