Function: rust-ts-mode--prettify-symbols-compose-p

rust-ts-mode--prettify-symbols-compose-p is a byte-compiled function defined in rust-ts-mode.el.gz.

Signature

(rust-ts-mode--prettify-symbols-compose-p START END MATCH)

Documentation

Return non-nil if the symbol MATCH should be composed.

See prettify-symbols-compose-predicate.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/rust-ts-mode.el.gz
(defun rust-ts-mode--prettify-symbols-compose-p (start end match)
  "Return non-nil if the symbol MATCH should be composed.
See `prettify-symbols-compose-predicate'."
  (and (fboundp 'prettify-symbols-default-compose-p)
       (prettify-symbols-default-compose-p start end match)
       ;; Make sure || is not a closure with 0 arguments and && is not
       ;; a double reference.
       (pcase match
         ((or "||" "&&")
          (string= (treesit-node-field-name (treesit-node-at (point)))
                   "operator"))
         (_ t))))