Ben Chuanlong Du's Blog

It is never too late to learn.

FireNVim Brings NeoVim into Your Browser

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

  1. Install icon.

    curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
    
  2. Install and configure NeoVim and SpaceVim using icon.

    icon nvim -ic
    icon svim -ic
    
  3. Install …

Constraints on Types in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Ways to Make Sure that a Type in Rust Satisfy Certain Conditions

  1. type bounds using the where clause

  2. disable users from constructing instances of a struct and provide initialized instances (with …