V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
VDimos
V2EX  ›  程序员

发现一个 Rust 的一个小彩蛋

  •  
  •   VDimos · Mar 28, 2019 · 2357 views
    This topic created in 2586 days ago, the information mentioned may be changed or developed.

    Rust 里面的 char 类型,有个函数叫 is_alphabetic 的方法,这里的文档有个小彩蛋:

        /// let c = '💝';
        /// // love is many things, but it is not alphabetic
        /// assert!(!c.is_alphabetic());
    

    写这个的程序员有点儿暖

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:03 · PVG 08:03 · LAX 17:03 · JFK 20:03
    ♥ Do have faith in what you're doing.