Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From limq-0.1.3 To trunk
2024-10-05
| ||
17:47 | Add success and fail tests for try_return. Leaf check-in: 6f677d36a6 user: jan tags: trunk | |
15:31 | Docs. check-in: 9860ad541a user: jan tags: trunk | |
01:29 | Release maintenance. check-in: c213f001af user: jan tags: limq-0.1.3, trunk | |
01:26 | Add LimQ::try_return(). check-in: 3fec62e1b7 user: jan tags: trunk | |
Changes to src/lib.rs.
︙ | |||
229 230 231 232 233 234 235 | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | - + + - - + + | while self.q.len() > (max_len - 1) { let _ = self.q.pop_front(); } } self.q.push_back(n); } |
︙ | |||
322 323 324 325 326 327 328 | 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | fn force_on_full() { let mut q: LimQ<u32> = LimQ::new(Some(1)); q.force_push(42); q.force_push(11); assert_eq!(q.pop(), Some(11)); } |