pub fn core_to_xml(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() < 1 {
            print_error(chunk, i, "to-xml requires one argument");
            return 0;
        }

        let value_rr = self.stack.pop().unwrap();
        let value_rrb = value_rr.borrow();
        let doc_opt = convert_to_xml(&value_rrb);
        if doc_opt.is_none() {
            print_error(chunk, i, "unable to convert value to XML");
            return 0;
        }
        self.stack
            .push(Rc::new(RefCell::new(Value::String(doc_opt.unwrap(), None))));
        return 1;
    }
/// Takes a hash that is the result of calling `from-xml`, converts
/// it into a string representation, and puts the result onto the
/// stack.
Takes a hash that is the result of calling `from-xml`, converts
it into a string representation, and puts the result onto the
stack.
Takes a hash that is the result of calling ` from - xml ` converts it into a string representation and puts the result onto the stack .
pub fn core_to_xml(&mut self, chunk: &Chunk, i: usize) -> i32 {
        if self.stack.len() < 1 {
            print_error(chunk, i, "to-xml requires one argument");
            return 0;
        }
        let value_rr = self.stack.pop().unwrap();
        let value_rrb = value_rr.borrow();
        let doc_opt = convert_to_xml(&value_rrb);
        if doc_opt.is_none() {
            print_error(chunk, i, "unable to convert value to XML");
            return 0;
        }
        self.stack
            .push(Rc::new(RefCell::new(Value::String(doc_opt.unwrap(), None))));
        return 1;
    }
pub fn core_to_xml ( & mut self , chunk : & Chunk , i : usize ) -> i32 { if self . stack . len ( ) < 1 { print_error ( chunk , i , " " ) ; return 0 ; } let value_rr = self . stack . pop ( ) . unwrap ( ) ; let value_rrb = value_rr . borrow ( ) ; let doc_opt = convert_to_xml ( & value_rrb ) ; if doc_opt . is_none ( ) { print_error ( chunk , i , " " ) ; return 0 ; } self . stack . push ( Rc :: new ( RefCell :: new ( Value :: String ( doc_opt . unwrap ( ) , None ) ) ) ) ; return 1 ; }
Takes a hash that is the result of calling `from-xml`, converts
it into a string representation, and puts the result onto the
stack.
Takes a hash that is the result of calling ` from - xml ` converts it into a string representation and puts the result onto the stack .
&mut self
chunk
&Chunk
i
usize