Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ functions
Functions
1,421 in github.com/QMHTMY/RustBook
⨍
Functions
1,421
◇
Types & classes
297
↓ 174 callers
Method
push
(&mut self, elem: T)
publication/code/chapter04/lvec.rs:51
↓ 131 callers
Method
to_string
(&self)
publication/code/chapter10/conshash.rs:21
↓ 113 callers
Method
to_string
(&self)
code/chapter09/conshash.rs:20
↓ 92 callers
Method
len
(&self)
publication/code/chapter08/bst.rs:42
↓ 81 callers
Method
push
新节点总是加到头部,
code/chapter03/linked_list.rs:35
↓ 59 callers
Method
len
(&self)
code/chapter07/bst.rs:32
↓ 56 callers
Method
iter
(&self)
publication/code/chapter04/lvec.rs:137
↓ 43 callers
Method
iter
(&self)
code/chapter03/linked_list.rs:71
↓ 39 callers
Method
len
(&self)
publication/code/chapter10/lru.rs:48
↓ 30 callers
Method
get_mut
(&self, key: &K)
publication/code/chapter08/rbtree.rs:287
↓ 30 callers
Method
len
(&self)
code/chapter09/lru.rs:104
↓ 29 callers
Method
insert
插入节点,RefCell 使用 borrow_mut 修改
publication/code/chapter09/bfs.rs:59
↓ 29 callers
Method
node
获取子节点
publication/code/chapter08/avl.rs:173
↓ 29 callers
Method
node
获取节点
code/chapter07/avl.rs:160
↓ 21 callers
Method
get
获取值引用,和查找流程相似
publication/code/chapter08/bst.rs:236
↓ 18 callers
Method
insert
节点插入
publication/code/chapter08/bst.rs:140
↓ 17 callers
Method
pop
(&mut self)
publication/code/chapter04/lvec.rs:100
↓ 15 callers
Method
remove
(&mut self, index: usize)
publication/code/chapter04/lvec.rs:108
↓ 14 callers
Method
insert
插入节点,RefCell 使用 borrow_mut 修改
code/chapter08/bfs.rs:56
↓ 14 callers
Method
pop
take 会取出数据留下空位
code/chapter03/linked_list.rs:45
↓ 13 callers
Method
get_mut
(&mut self, key: &K)
code/chapter09/lru.rs:83
↓ 12 callers
Method
cmp
(&self, other: &Self)
publication/code/chapter09/dijkstra.rs:27
↓ 12 callers
Method
insert
(&mut self, mut index: usize, elem: T)
publication/code/chapter04/lvec.rs:79
↓ 12 callers
Method
insert
(&mut self, mut index: usize, elem: T)
code/chapter03/lvec.rs:78
↓ 12 callers
Method
len
(&self)
publication/code/chapter09/word_ladder.rs:38
↓ 12 callers
Method
push
新节点总是加到头部,
publication/code/chapter04/linked_list.rs:40
↓ 11 callers
Method
get
获取值,和查找流程相似
code/chapter07/bst.rs:172
↓ 11 callers
Method
len
(&self)
code/chapter03/lvec.rs:42
↓ 11 callers
Method
push
数据保存在 Vec 末尾
publication/code/chapter04/stack.rs:33
↓ 11 callers
Method
push
末尾添加一个数据,调整堆
publication/code/chapter08/binary_heap.rs:62
↓ 10 callers
Method
len
(&self)
publication/code/chapter06/hashmap.rs:24
↓ 10 callers
Method
len
(&self)
code/chapter05/hashmap.rs:128
↓ 10 callers
Method
len
(&self)
code/chapter08/word_ladder.rs:38
↓ 9 callers
Method
enqueue
判断是否有剩余空间、有则数据加入队列
publication/code/chapter04/queue.rs:35
↓ 9 callers
Method
insert
(&mut self, key: T, val: U)
code/chapter07/bst.rs:86
↓ 8 callers
Method
add_edge
(&mut self, from: &T, to: &T, wt: i32)
publication/code/chapter09/graph_adjlist.rs:136
↓ 8 callers
Method
add_edge
(&mut self, from: &T, to: &T, wt: i32)
code/chapter08/graph_adjlist.rs:137
↓ 8 callers
Method
insert
数据插入
publication/code/chapter08/rbtree.rs:303
↓ 8 callers
Method
len
(&self)
publication/code/chapter04/deque.rs:26
↓ 8 callers
Method
push
(&mut self, val: T)
publication/code/chapter04/infix_to_postfix.rs:19
↓ 8 callers
Method
push
(&mut self, val: T)
code/chapter03/infix_to_postfix.rs:17
↓ 7 callers
Method
get
(&mut self, key: &K)
code/chapter09/lru.rs:74
↓ 7 callers
Method
hash
(&self, key: usize)
publication/code/chapter06/hashmap.rs:60
↓ 7 callers
Method
hash
(&self, key: usize)
code/chapter05/hashmap.rs:24
↓ 7 callers
Method
insert
(&mut self, key: K, val: V)
publication/code/chapter10/lru.rs:52
↓ 7 callers
Method
is_empty
(&self)
publication/code/chapter10/lru.rs:40
↓ 7 callers
Method
is_empty
(&self)
code/chapter09/lru.rs:96
↓ 7 callers
Method
len
(&self)
publication/code/chapter04/lvec.rs:42
↓ 7 callers
Method
pop
弹出最小值
publication/code/chapter08/binary_heap.rs:91
↓ 7 callers
Method
push
末尾添加一个数据,调整堆
code/chapter07/binary_heap.rs:66
↓ 7 callers
Function
serialize
(value: &T)
publication/code/chapter10/blockchain/blockchain6/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
publication/code/chapter10/blockchain/blockchain5/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
publication/code/chapter10/blockchain/blockchain7/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
publication/code/chapter10/blockchain/blockchain8/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
code/chapter09/blockchain/blockchain6/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
code/chapter09/blockchain/blockchain5/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
code/chapter09/blockchain/blockchain7/utils/src/serializer.rs:6
↓ 7 callers
Function
serialize
(value: &T)
code/chapter09/blockchain/blockchain8/utils/src/serializer.rs:6
↓ 7 callers
Method
sort
(&mut self)
publication/code/chapter07/tim_sort.rs:527
↓ 6 callers
Method
add_edge
添加边,设置边属性为 true
publication/code/chapter09/graph_matrix.rs:56
↓ 6 callers
Method
add_edge
添加边,设置边属性为 true
code/chapter08/graph_matrix.rs:54
↓ 6 callers
Method
cmp
(&self, other: &Self)
code/chapter08/dijkstra.rs:25
↓ 6 callers
Method
enqueue
(&mut self, val: T)
publication/code/chapter08/bst.rs:21
↓ 6 callers
Method
enqueue
(&mut self, val: T)
publication/code/chapter08/avl.rs:30
↓ 6 callers
Method
enqueue
(&mut self, val: T)
publication/code/chapter08/binary_tree.rs:29
↓ 6 callers
Method
get
(&mut self, key: &K)
publication/code/chapter10/lru.rs:90
↓ 6 callers
Method
get_left
获取左右子树
publication/code/chapter08/binary_tree.rs:130
↓ 6 callers
Method
get_left
获取左右子节点及根节点,注意使用了 clone
code/chapter07/binary_tree.rs:50
↓ 6 callers
Method
get_right
(&self)
publication/code/chapter08/binary_tree.rs:134
↓ 6 callers
Method
insert
(&mut self, key: usize, value: T)
publication/code/chapter06/hashmap.rs:68
↓ 6 callers
Method
iter
迭代函数,包括 mut 版本
publication/code/chapter08/rbtree.rs:499
↓ 6 callers
Function
left_rotate
(tree: &mut RBTree<K, V>, x: *mut RBNode<K, V>)
publication/code/chapter08/rbtree.rs:808
↓ 6 callers
Method
push
take 取出 top 中节点,留下空位,可以回填
publication/code/chapter04/list_stack.rs:51
↓ 6 callers
Function
right_rotate
(tree: &mut RBTree<K, V>, x: *mut RBNode<K, V>)
publication/code/chapter08/rbtree.rs:844
↓ 6 callers
Function
serialize
(value: &T)
publication/code/chapter10/blockchain/blockchain4/utils/src/serializer.rs:6
↓ 6 callers
Function
serialize
(value: &T)
code/chapter09/blockchain/blockchain4/utils/src/serializer.rs:6
↓ 5 callers
Method
add_front
Vec 末尾为队首
publication/code/chapter04/deque.rs:35
↓ 5 callers
Method
contains
(&mut self, key: &K)
code/chapter09/lru.rs:92
↓ 5 callers
Method
get_left
获取左右子节点
publication/code/chapter08/bst.rs:227
↓ 5 callers
Method
get_right
(&self)
publication/code/chapter08/bst.rs:231
↓ 5 callers
Function
hash_str
(value: &[u8])
publication/code/chapter10/blockchain/blockchain7/utils/src/serializer.rs:12
↓ 5 callers
Function
hash_str
(value: &[u8])
publication/code/chapter10/blockchain/blockchain8/utils/src/serializer.rs:12
↓ 5 callers
Function
hash_str
(value: &[u8])
code/chapter09/blockchain/blockchain7/utils/src/serializer.rs:12
↓ 5 callers
Function
hash_str
(value: &[u8])
code/chapter09/blockchain/blockchain8/utils/src/serializer.rs:12
↓ 5 callers
Method
insert
(&mut self, key: K, val: V)
code/chapter09/lru.rs:38
↓ 5 callers
Method
len
(&self)
publication/code/chapter04/queue.rs:26
↓ 5 callers
Function
num2str_rec
(num: i32, base: i32)
publication/code/chapter05/num2str_rec.rs:6
↓ 5 callers
Method
pop
(&mut self)
publication/code/chapter04/infix_to_postfix.rs:24
↓ 5 callers
Method
pop
(&mut self)
code/chapter03/infix_to_postfix.rs:22
↓ 5 callers
Method
push
(&mut self, elem: T)
code/chapter03/lvec.rs:50
↓ 5 callers
Method
remove
(&mut self, key: &K)
code/chapter09/lru.rs:67
↓ 5 callers
Function
serialize
(value: &T)
publication/code/chapter10/blockchain/blockchain3/utils/src/serializer.rs:6
↓ 5 callers
Function
serialize
(value: &T)
code/chapter09/blockchain/blockchain3/utils/src/serializer.rs:6
↓ 5 callers
Method
size
(&self)
code/chapter03/deque.rs:60
↓ 4 callers
Method
add_rear
Vec 首部为队尾
publication/code/chapter04/deque.rs:45
↓ 4 callers
Method
delete
(&mut self, key: &K)
publication/code/chapter08/rbtree.rs:343
↓ 4 callers
Method
enqueue
判断是否有剩余空间、有则数据加入队列
code/chapter03/queue.rs:19
↓ 4 callers
Method
get_key
获取及设置 key
publication/code/chapter08/binary_tree.rs:139
↓ 4 callers
Method
get_right
(&self)
code/chapter07/binary_tree.rs:54
↓ 4 callers
Function
hanoi
p : pole 杆
publication/code/chapter05/hanoi.rs:4
next →
1–100 of 1,421, ranked by callers