Where is meaning of the More keyword in Rust?


#1

Recently, I just read some code like below, but I can not find anything about More keywords in the API, what’s the meaning of More in Rust?

pub struct List {
    head: Link,
}

enum Link {
    Empty,
    More(Box<Node>),
}

struct Node {
    elem: i32,
    next: Link,
}

#2

More isn’t a keyword, it’s just the name that the author chose for one of the variants of the Link enum.

See the chapter on enums for details.


#3

Thanks very much! I got it.