fn print_string_as_functor(&mut self, focus: usize, max_depth: usize) -> bool {
        let iter = HeapPStrIter::new(self.iter.heap, focus);

        for (char_count, c) in iter.chars().enumerate() {
            append_str!(self, "'.'");
            push_char!(self, '(');

            print_char!(self, self.quoted, c);
            push_char!(self, ',');

            self.state_stack.push(TokenOrRedirect::Close);

            if max_depth >= char_count + 1 {
                self.state_stack.push(TokenOrRedirect::Atom(atom!("...")));
                return true;
            }
        }

        false
    }
// returns true if max_depth limit is reached and ellipsis is printed.
returns true if max_depth limit is reached and ellipsis is printed.
returns true if max_depth limit is reached and ellipsis is printed .
fn print_string_as_functor(&mut self, focus: usize, max_depth: usize) -> bool {
        let iter = HeapPStrIter::new(self.iter.heap, focus);
        for (char_count, c) in iter.chars().enumerate() {
            append_str!(self, "'.'");
            push_char!(self, '(');
            print_char!(self, self.quoted, c);
            push_char!(self, ',');
            self.state_stack.push(TokenOrRedirect::Close);
            if max_depth >= char_count + 1 {
                self.state_stack.push(TokenOrRedirect::Atom(atom!("...")));
                return true;
            }
        }
        false
    }
fn print_string_as_functor ( & mut self , focus : usize , max_depth : usize ) -> bool { let iter = HeapPStrIter :: new ( self . iter . heap , focus ) ; for ( char_count , c ) in iter . chars ( ) . enumerate ( ) { append_str ! ( self " " ) ; push_char ! ( self '(' ) ; print_char ! ( self self quoted c ) ; push_char ! ( self ',' ) ; self . state_stack . push ( TokenOrRedirect :: Close ) ; if max_depth >= char_count + 1 { self . state_stack . push ( TokenOrRedirect :: Atom ( atom ! ( " " ) ) ) ; return true ; } } false }
returns true if max_depth limit is reached and ellipsis is printed.
returns true if max_depth limit is reached and ellipsis is printed .
&mut self
focus
usize
max_depth
usize
&mut self
focus
usize
max_depth
usize