2 Answered Questions

[SOLVED] Why can't I store a value and a reference to that value in the same struct?

3 Answered Questions

4 Answered Questions

[SOLVED] Return local String as a slice (&str)

  • 2015-04-03 07:42:17
  • anderspitman
  • 10914 View
  • 43 Score
  • 4 Answer
  • Tags:   rust

2 Answered Questions

[SOLVED] How do I create a global, mutable singleton?

  • 2015-01-06 03:11:29
  • stevenkucera
  • 42555 View
  • 117 Score
  • 2 Answer
  • Tags:   rust

1 Answered Questions

[SOLVED] What are non-lexical lifetimes?

1 Answered Questions

[SOLVED] How can I pass a reference to a stack variable to a thread?

  • 2015-09-23 23:00:15
  • Ned Ruggeri
  • 4907 View
  • 29 Score
  • 1 Answer
  • Tags:   rust

1 Answered Questions

[SOLVED] What is the correct way to return an Iterator (or any other trait)?

  • 2014-12-17 21:39:10
  • forgemo
  • 25475 View
  • 109 Score
  • 1 Answer
  • Tags:   rust

2 Answered Questions

[SOLVED] What are Rust's exact auto-dereferencing rules?

2 Answered Questions

[SOLVED] How do I implement a trait I don't own for a type I don't own?

  • 2014-08-20 19:45:19
  • le_me
  • 4309 View
  • 29 Score
  • 2 Answer
  • Tags:   rust traits

1 Answered Questions

[SOLVED] How to lookup from and insert into a HashMap efficiently?

  • 2015-02-14 04:23:30
  • Yusuke Shinyama
  • 14203 View
  • 98 Score
  • 1 Answer
  • Tags:   hashmap rust lookup

1 Answered Questions

1 Answered Questions

[SOLVED] "Expected type parameter" error in the constructor of a generic struct

  • 2015-09-13 15:17:07
  • Xavier Shay
  • 4178 View
  • 20 Score
  • 1 Answer
  • Tags:   generics rust traits

8 Answered Questions

[SOLVED] What are the differences between Rust's `String` and `str`?

  • 2014-06-11 08:29:34
  • Daniel Fath
  • 50469 View
  • 414 Score
  • 8 Answer
  • Tags:   string rust

4 Answered Questions

[SOLVED] Why do try!() and ? not compile when used in a function that doesn't return Option or Result?

  • 2015-05-31 08:42:53
  • Mathieu David
  • 10009 View
  • 48 Score
  • 4 Answer
  • Tags:   rust

2 Answered Questions

[SOLVED] How can you make a safe static singleton in Rust?

  • 2014-12-01 04:01:15
  • Doug
  • 11547 View
  • 27 Score
  • 2 Answer
  • Tags:   rust

10 Answered Questions

[SOLVED] How do I print the type of a variable in Rust?

  • 2014-02-13 06:49:09
  • user2431012
  • 69578 View
  • 233 Score
  • 10 Answer
  • Tags:   types rust

3 Answered Questions

2 Answered Questions

[SOLVED] How can I swap in a new value for a field in a mutable reference to a structure?

  • 2014-11-24 05:58:37
  • arcyqwerty
  • 3601 View
  • 19 Score
  • 2 Answer
  • Tags:   rust

2 Answered Questions

1 Answered Questions

[SOLVED] Why is a trait not implemented for a type that clearly has it implemented?

  • 2017-06-08 13:30:31
  • haheute
  • 2791 View
  • 13 Score
  • 1 Answer
  • Tags:   rust serde

1 Answered Questions

1 Answered Questions

[SOLVED] Why can I return a reference to a local literal but not a variable?

1 Answered Questions

[SOLVED] How does for<> syntax differ from a regular lifetime bound?

  • 2016-02-24 03:35:20
  • George Hilliard
  • 4937 View
  • 64 Score
  • 1 Answer
  • Tags:   rust

2 Answered Questions

3 Answered Questions

1 Answered Questions

[SOLVED] How do I create a heterogeneous collection of objects?

  • 2015-01-15 05:03:01
  • stevenkucera
  • 3092 View
  • 11 Score
  • 1 Answer
  • Tags:   rust

9 Answered Questions

[SOLVED] Why are explicit lifetimes needed in Rust?

3 Answered Questions

[SOLVED] How do I write an iterator that returns references to itself?