MCPcopy Create free account

hub / github.com/QMHTMY/RustBook / functions

Functions1,421 in github.com/QMHTMY/RustBook

↓ 174 callersMethodpush
(&mut self, elem: T)
publication/code/chapter04/lvec.rs:51
↓ 131 callersMethodto_string
(&self)
publication/code/chapter10/conshash.rs:21
↓ 113 callersMethodto_string
(&self)
code/chapter09/conshash.rs:20
↓ 92 callersMethodlen
(&self)
publication/code/chapter08/bst.rs:42
↓ 81 callersMethodpush
新节点总是加到头部,
code/chapter03/linked_list.rs:35
↓ 59 callersMethodlen
(&self)
code/chapter07/bst.rs:32
↓ 56 callersMethoditer
(&self)
publication/code/chapter04/lvec.rs:137
↓ 43 callersMethoditer
(&self)
code/chapter03/linked_list.rs:71
↓ 39 callersMethodlen
(&self)
publication/code/chapter10/lru.rs:48
↓ 30 callersMethodget_mut
(&self, key: &K)
publication/code/chapter08/rbtree.rs:287
↓ 30 callersMethodlen
(&self)
code/chapter09/lru.rs:104
↓ 29 callersMethodinsert
插入节点,RefCell 使用 borrow_mut 修改
publication/code/chapter09/bfs.rs:59
↓ 29 callersMethodnode
获取子节点
publication/code/chapter08/avl.rs:173
↓ 29 callersMethodnode
获取节点
code/chapter07/avl.rs:160
↓ 21 callersMethodget
获取值引用,和查找流程相似
publication/code/chapter08/bst.rs:236
↓ 18 callersMethodinsert
节点插入
publication/code/chapter08/bst.rs:140
↓ 17 callersMethodpop
(&mut self)
publication/code/chapter04/lvec.rs:100
↓ 15 callersMethodremove
(&mut self, index: usize)
publication/code/chapter04/lvec.rs:108
↓ 14 callersMethodinsert
插入节点,RefCell 使用 borrow_mut 修改
code/chapter08/bfs.rs:56
↓ 14 callersMethodpop
take 会取出数据留下空位
code/chapter03/linked_list.rs:45
↓ 13 callersMethodget_mut
(&mut self, key: &K)
code/chapter09/lru.rs:83
↓ 12 callersMethodcmp
(&self, other: &Self)
publication/code/chapter09/dijkstra.rs:27
↓ 12 callersMethodinsert
(&mut self, mut index: usize, elem: T)
publication/code/chapter04/lvec.rs:79
↓ 12 callersMethodinsert
(&mut self, mut index: usize, elem: T)
code/chapter03/lvec.rs:78
↓ 12 callersMethodlen
(&self)
publication/code/chapter09/word_ladder.rs:38
↓ 12 callersMethodpush
新节点总是加到头部,
publication/code/chapter04/linked_list.rs:40
↓ 11 callersMethodget
获取值,和查找流程相似
code/chapter07/bst.rs:172
↓ 11 callersMethodlen
(&self)
code/chapter03/lvec.rs:42
↓ 11 callersMethodpush
数据保存在 Vec 末尾
publication/code/chapter04/stack.rs:33
↓ 11 callersMethodpush
末尾添加一个数据,调整堆
publication/code/chapter08/binary_heap.rs:62
↓ 10 callersMethodlen
(&self)
publication/code/chapter06/hashmap.rs:24
↓ 10 callersMethodlen
(&self)
code/chapter05/hashmap.rs:128
↓ 10 callersMethodlen
(&self)
code/chapter08/word_ladder.rs:38
↓ 9 callersMethodenqueue
判断是否有剩余空间、有则数据加入队列
publication/code/chapter04/queue.rs:35
↓ 9 callersMethodinsert
(&mut self, key: T, val: U)
code/chapter07/bst.rs:86
↓ 8 callersMethodadd_edge
(&mut self, from: &T, to: &T, wt: i32)
publication/code/chapter09/graph_adjlist.rs:136
↓ 8 callersMethodadd_edge
(&mut self, from: &T, to: &T, wt: i32)
code/chapter08/graph_adjlist.rs:137
↓ 8 callersMethodinsert
数据插入
publication/code/chapter08/rbtree.rs:303
↓ 8 callersMethodlen
(&self)
publication/code/chapter04/deque.rs:26
↓ 8 callersMethodpush
(&mut self, val: T)
publication/code/chapter04/infix_to_postfix.rs:19
↓ 8 callersMethodpush
(&mut self, val: T)
code/chapter03/infix_to_postfix.rs:17
↓ 7 callersMethodget
(&mut self, key: &K)
code/chapter09/lru.rs:74
↓ 7 callersMethodhash
(&self, key: usize)
publication/code/chapter06/hashmap.rs:60
↓ 7 callersMethodhash
(&self, key: usize)
code/chapter05/hashmap.rs:24
↓ 7 callersMethodinsert
(&mut self, key: K, val: V)
publication/code/chapter10/lru.rs:52
↓ 7 callersMethodis_empty
(&self)
publication/code/chapter10/lru.rs:40
↓ 7 callersMethodis_empty
(&self)
code/chapter09/lru.rs:96
↓ 7 callersMethodlen
(&self)
publication/code/chapter04/lvec.rs:42
↓ 7 callersMethodpop
弹出最小值
publication/code/chapter08/binary_heap.rs:91
↓ 7 callersMethodpush
末尾添加一个数据,调整堆
code/chapter07/binary_heap.rs:66
↓ 7 callersFunctionserialize
(value: &T)
publication/code/chapter10/blockchain/blockchain6/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
publication/code/chapter10/blockchain/blockchain5/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
publication/code/chapter10/blockchain/blockchain7/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
publication/code/chapter10/blockchain/blockchain8/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
code/chapter09/blockchain/blockchain6/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
code/chapter09/blockchain/blockchain5/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
code/chapter09/blockchain/blockchain7/utils/src/serializer.rs:6
↓ 7 callersFunctionserialize
(value: &T)
code/chapter09/blockchain/blockchain8/utils/src/serializer.rs:6
↓ 7 callersMethodsort
(&mut self)
publication/code/chapter07/tim_sort.rs:527
↓ 6 callersMethodadd_edge
添加边,设置边属性为 true
publication/code/chapter09/graph_matrix.rs:56
↓ 6 callersMethodadd_edge
添加边,设置边属性为 true
code/chapter08/graph_matrix.rs:54
↓ 6 callersMethodcmp
(&self, other: &Self)
code/chapter08/dijkstra.rs:25
↓ 6 callersMethodenqueue
(&mut self, val: T)
publication/code/chapter08/bst.rs:21
↓ 6 callersMethodenqueue
(&mut self, val: T)
publication/code/chapter08/avl.rs:30
↓ 6 callersMethodenqueue
(&mut self, val: T)
publication/code/chapter08/binary_tree.rs:29
↓ 6 callersMethodget
(&mut self, key: &K)
publication/code/chapter10/lru.rs:90
↓ 6 callersMethodget_left
获取左右子树
publication/code/chapter08/binary_tree.rs:130
↓ 6 callersMethodget_left
获取左右子节点及根节点,注意使用了 clone
code/chapter07/binary_tree.rs:50
↓ 6 callersMethodget_right
(&self)
publication/code/chapter08/binary_tree.rs:134
↓ 6 callersMethodinsert
(&mut self, key: usize, value: T)
publication/code/chapter06/hashmap.rs:68
↓ 6 callersMethoditer
迭代函数,包括 mut 版本
publication/code/chapter08/rbtree.rs:499
↓ 6 callersFunctionleft_rotate
(tree: &mut RBTree<K, V>, x: *mut RBNode<K, V>)
publication/code/chapter08/rbtree.rs:808
↓ 6 callersMethodpush
take 取出 top 中节点,留下空位,可以回填
publication/code/chapter04/list_stack.rs:51
↓ 6 callersFunctionright_rotate
(tree: &mut RBTree<K, V>, x: *mut RBNode<K, V>)
publication/code/chapter08/rbtree.rs:844
↓ 6 callersFunctionserialize
(value: &T)
publication/code/chapter10/blockchain/blockchain4/utils/src/serializer.rs:6
↓ 6 callersFunctionserialize
(value: &T)
code/chapter09/blockchain/blockchain4/utils/src/serializer.rs:6
↓ 5 callersMethodadd_front
Vec 末尾为队首
publication/code/chapter04/deque.rs:35
↓ 5 callersMethodcontains
(&mut self, key: &K)
code/chapter09/lru.rs:92
↓ 5 callersMethodget_left
获取左右子节点
publication/code/chapter08/bst.rs:227
↓ 5 callersMethodget_right
(&self)
publication/code/chapter08/bst.rs:231
↓ 5 callersFunctionhash_str
(value: &[u8])
publication/code/chapter10/blockchain/blockchain7/utils/src/serializer.rs:12
↓ 5 callersFunctionhash_str
(value: &[u8])
publication/code/chapter10/blockchain/blockchain8/utils/src/serializer.rs:12
↓ 5 callersFunctionhash_str
(value: &[u8])
code/chapter09/blockchain/blockchain7/utils/src/serializer.rs:12
↓ 5 callersFunctionhash_str
(value: &[u8])
code/chapter09/blockchain/blockchain8/utils/src/serializer.rs:12
↓ 5 callersMethodinsert
(&mut self, key: K, val: V)
code/chapter09/lru.rs:38
↓ 5 callersMethodlen
(&self)
publication/code/chapter04/queue.rs:26
↓ 5 callersFunctionnum2str_rec
(num: i32, base: i32)
publication/code/chapter05/num2str_rec.rs:6
↓ 5 callersMethodpop
(&mut self)
publication/code/chapter04/infix_to_postfix.rs:24
↓ 5 callersMethodpop
(&mut self)
code/chapter03/infix_to_postfix.rs:22
↓ 5 callersMethodpush
(&mut self, elem: T)
code/chapter03/lvec.rs:50
↓ 5 callersMethodremove
(&mut self, key: &K)
code/chapter09/lru.rs:67
↓ 5 callersFunctionserialize
(value: &T)
publication/code/chapter10/blockchain/blockchain3/utils/src/serializer.rs:6
↓ 5 callersFunctionserialize
(value: &T)
code/chapter09/blockchain/blockchain3/utils/src/serializer.rs:6
↓ 5 callersMethodsize
(&self)
code/chapter03/deque.rs:60
↓ 4 callersMethodadd_rear
Vec 首部为队尾
publication/code/chapter04/deque.rs:45
↓ 4 callersMethoddelete
(&mut self, key: &K)
publication/code/chapter08/rbtree.rs:343
↓ 4 callersMethodenqueue
判断是否有剩余空间、有则数据加入队列
code/chapter03/queue.rs:19
↓ 4 callersMethodget_key
获取及设置 key
publication/code/chapter08/binary_tree.rs:139
↓ 4 callersMethodget_right
(&self)
code/chapter07/binary_tree.rs:54
↓ 4 callersFunctionhanoi
p : pole 杆
publication/code/chapter05/hanoi.rs:4
next →1–100 of 1,421, ranked by callers