看这里,
https://doc.rust-lang.org/book/second-edition/appendix-02-operators.html
.. (variant(x, ..), struct_type { x, .. }): “and the rest” pattern binding.
这句话什么意思,怎么用?
1
共 3 条评论, 1 页
看这里,
https://doc.rust-lang.org/book/second-edition/appendix-02-operators.html
.. (variant(x, ..), struct_type { x, .. }): “and the rest” pattern binding.
这句话什么意思,怎么用?
评论区
写评论原来是用在match里面。
link