All Rust Answers
- Why can't I store a value and a reference to that value in the same struct?
- Why is it discouraged to accept a reference to a String (&String), Vec (&Vec), or Box (&Box) as a function argument?
- Return local String as a slice (&str)
- What are Rust's exact auto-dereferencing rules?
- What is the correct way to return an Iterator (or any other trait)?
- How do I implement a trait I don't own for a type I don't own?
- Returning a reference from a HashMap or Vec causes a borrow to last beyond the scope it's in?
- How to lookup from and insert into a HashMap efficiently?
- What are the differences between Rust's `String` and `str`?
- Why can I return a reference to a local literal but not a variable?
- “Expected type parameter” error in the constructor of a generic struct
- Cannot obtain a mutable reference when iterating a recursive structure: cannot borrow as mutable more than once at a time
- Why is a trait not implemented for a type that clearly has it implemented?
- How can I swap in a new value for a field in a mutable reference to a structure?
- Why do try!() and ? not compile when used in a function that doesn't return Option or Result?
- How can you make a safe static singleton in Rust?
- The compiler suggests I add a 'static lifetime because the parameter type may not live long enough, but I don't think that's what I want
- What is the difference between iter and into_iter?
- Cannot move out of borrowed content / cannot move out of behind a shared reference
- How does for<> syntax differ from a regular lifetime bound?
- How do I write an iterator that returns references to itself?
- How to get a reference to a concrete type from a trait object?
- Why does my string not match when reading user input from stdin?
- How do I require a generic type implement an operation like Add, Sub, Mul, or Div in a generic function?
- How do I synchronously return a value calculated in an asynchronous Future in stable Rust?
- How to get mutable references to two array elements at the same time?
- Why are explicit lifetimes needed in Rust?
- How to include a module from another file from the same project?
- How do I return a reference to something inside a RefCell without breaking encapsulation?
- Why does refactoring by extracting a method trigger a borrow checker error?
- What does “dyn” mean in a type?
- What does “Sized is not implemented” mean?
- How is there a conflicting implementation of `From` when using a generic type?
- Why does linking lifetimes matter only with mutable references?
- Deriving a trait results in unexpected compiler error, but the manual implementation works
- How to get a slice as an array in Rust?
- How can I create my own data structure with an iterator that returns mutable references?
- Why is this match pattern unreachable when using non-literal patterns?
- Does println! borrow or own the variable?
- What is the proper way to initialize a fixed length array?
- How do I implement the Add trait for a reference to a struct?
- Cannot borrow as immutable because it is also borrowed as mutable in function arguments
- I implemented a trait for another trait but cannot call methods from both traits
- What is the return type of the indexing operation?
- Double mutable borrow error in a loop happens even with NLL on
- How can I perform parallel asynchronous HTTP GET requests with reqwest?
- What are move semantics in Rust?
- Cannot move out of borrowed content when trying to transfer ownership
- Converting number primitives (i32, f64, etc) to byte representations
- How to use one module from another module in a Rust cargo project?
- How to call a method when a trait and struct use the same method name?
- How do I conditionally return different types of futures?
- Why does Iterator::take_while take ownership of the iterator?
- Cannot borrow as mutable more than once at a time in one code - but can in another very similar
- How do I convert a Vector of bytes (u8) to a string?
- Rust proper error handling (auto convert from one error type to another with question mark)
- When should I implement std::convert::From vs std::convert::Into?
- Lifetime troubles sharing references between threads
- Convert a String to int?
- How to implement Iterator and IntoIterator for a simple struct?
- How do I do a basic import/include of a function from one module to another in Rust 2015?
- What does “cannot move out of index of” mean?
- How do you access enum values in Rust?
- How do I borrow a reference to what is inside an Option<T>?
- Is it possible to use `impl Trait` as a function's return type in a trait definition?
- Is it possible to declare variables procedurally using Rust macros?
- Can I write an Iterator that mutates itself and then yields a reference into itself?
- How do I share a mutable object between threads using Arc?
- Efficiently mutate a vector while also iterating over the same vector
- How do I convert a Vec<T> to a Vec<U> without copying the vector?
- What does it mean to pass in a vector into a `for` loop versus a reference to a vector?
- How to update-or-insert on a Vec?
- How do I see the expanded macro code that's causing my compile error?
- Converting from Option<String> to Option<&str>
- Why would I implement methods on a trait instead of as part of the trait?
- Is it considered a bad practice to implement Deref for newtypes?
- How to return a reference to a sub-value of a value that is under a mutex?
- How can I test stdin and stdout?
- How to transform fields during serialization using Serde?
- How do I move out of a struct field that is an Option?
- Change enum variant while moving the field to the new variant
- Is there an owned version of String::chars?
- How do I convert a C string into a Rust string and back via FFI?
- How to implement HashMap with two keys?
- Compare enums only by variant, not value
- Why does a generic method inside a trait require trait object to be sized?
- Are there equivalents to slice::chunks/windows for iterators to loop over pairs, triplets etc?
- What types are valid for the `self` parameter of a method?
- How can I append a formatted string to an existing String?
- Is there any trait that specifies numeric functionality?
- How to use struct self in member method closure
- How to convert a slice into an array reference?
- Borrow two mutable values from the same HashMap
- Can't understand Rust module system
- How do I use a macro across module files?
- How can this instance seemingly outlive its own parameter lifetime?
- How does Rust provide move semantics?
- Why can impl trait not be used to return multiple / conditional types?
- When is it appropriate to use an associated type versus a generic type?
- What is the best approach to encapsulate blocking I/O in future-rs?
- How to write a trait bound for adding two references of a generic type?
- Returning a closure from a function
- Why is adding a lifetime to a trait with the plus operator (Iterator<Item = &Foo> + 'a) needed?
- Are polymorphic variables allowed?
- Split a module across several files
- Is there any way to create a type alias for multiple traits?
- Conditionally iterate over one of several possible iterators
- How to test for equality between trait objects?
- How do I write the lifetimes for references in a type constraint when one of them is a local reference?
- Rust package with both a library and a binary?
- When does a closure implement Fn, FnMut and FnOnce?
- How to convert a String into a &'static str
- What makes something a “trait object”?
- How do I use integer number literals when using generic types?
- Why does Future::select choose the future with a longer sleep period first?
- Need holistic explanation about Rust's cell and reference counted types
- How to clone a struct storing a boxed trait object?
- How do you define custom `Error` types in Rust?
- Can I do type introspection with trait objects and then downcast it?
- What's the de-facto way of reading and writing files in Rust 1.x?
- Cannot borrow as mutable because it is also borrowed as immutable
- What is the purpose of async/await in Rust?
- Why do I need to import a trait to use the methods it defines for a type?
- How do I return an instance of a trait from a method?
- Is it possible to access struct fields from within a trait?
- Why is a borrow still held in the else block of an if let?
- What's an idiomatic way to print an iterator separated by spaces in Rust?
- How to match a String against string literals?
- Vector of objects belonging to a trait
- Proper way to return a new string in Rust
- How do I implement Copy and Clone for a type that contains a String (or any type that doesn't implement Copy)?
- How to create a static string at compile time
- What are the options to end a mutable borrow in Rust?
- How do I convert between numeric types safely and idiomatically?
- Cannot infer an appropriate lifetime for autoref due to conflicting requirements
- How to avoid writing duplicate accessor functions for mutable and immutable references in Rust?
- Why can't Rust infer the resulting type of Iterator::sum?
- How do I concatenate strings?
- println! error: expected a literal / format argument must be a string literal
- How do I get an owned value out of a `Box`?
- Is there another option to share an Arc in multiple closures besides cloning it before each closure?
- How can I convert a buffer of a slice of bytes (&[u8]) to an integer?
- How to declare a lifetime for a closure argument?
- Iterator returning items by reference, lifetime issue
- How does the mechanism behind the creation of boxed traits work?
- Why is it possible to implement Read on an immutable reference to File?
- How to create an in-memory object that can be used as a Reader, Writer, or Seek in Rust?
- How to initialize struct fields which reference each other
- Generating documentation in macros
- Is there a way other than traits to add methods to a type I don't own?
- What is the relation between auto-dereferencing and deref coercion?
- Why is the return type of Deref::deref itself a reference?
- “borrowed value does not live long enough” seems to blame the wrong thing
- How to allocate arrays on the heap in Rust 1.0?
- How can I have a collection of objects that differ by their associated type?
- Is it possible to make a type only movable and not copyable?
- How can I move a captured variable into a closure within a closure?
- How to return a string (or similar) from Rust in WebAssembly?
- How do you set, clear and toggle a single bit in Rust?
- What's the Rust idiom to define a field pointing to a C opaque pointer?
- Error while trying to borrow 2 fields from a struct wrapped in RefCell
- Processing vec in parallel: how to do safely, or without using unstable features?
- Removing elements from a Vec based on some condition
- How do I call a function through a member variable?
- How do I implement a trait with a generic method?
- What is a “fat pointer”?
- Why is capitalizing the first letter of a string so convoluted in Rust?
- How do I invoke a system command and capture its output?
- What is the difference between a slice and an array?
- How do I return a Filter iterator from a function?
- Matching a generic parameter to an associated type in an impl
- How do you actually use dynamically sized types in Rust?
- Why is the mutable reference not moved here?
- How can deserialization of polymorphic trait objects be added in Rust if at all?
- How do you unwrap a Result on Ok or return from the function on Err?
- Linking the lifetimes of self and a reference in method
- Iterating over a slice's values instead of references in Rust?
- Is there a way to count with macros?
- How do you enable a Rust “crate feature”?
- Why does this read input before printing?
- How can I downcast from Box<Any> to a trait object type?
- Why do I get “type annotations needed” when using Iterator::collect?
- Borrowing references to attributes in a struct
- How can the ref keyword be avoided when pattern matching in a function taking &self or &mut self?
- “borrowed value does not live long enough” when using the builder pattern
- How can I initialize an array using a function?
- What is the difference between `e1` and `&e2` when used as the for-loop variable?
- How to use a local unpublished crate?
- How do you use parent module imports in Rust?
- What does 'let x = x' do in Rust?
- Is it possible to make a recursive closure in Rust?
- “Expected fn item, found a different fn item” when working with function pointers
- Why do I need rebinding/shadowing when I can have mutable variable binding?
- How to read an integer input from the user in Rust 1.0?
- How do I use floating point number literals when using generic types?
- How can I deserialize JSON with a top-level array using Serde?
- How to avoid temporary allocations when using a complex key for a HashMap?
- Temporarily transmute [u8] to [u16]
- Is it possible to return either a borrowed or owned type in Rust?
- How can I call a mutating method while holding a reference to self?
- What is the purpose of `&` before the loop variable?
- How to mock external dependencies in tests?
- Sharing a struct with trait objects as properties across threads
- Why would I use divergent functions?
- How to operate on 2 mutable slices of a Rust array?
- Do all primitive types implement the Copy trait?
- Why does Rust not implement total ordering via the Ord trait for f64 and f32?
- Implementing Index trait to return a value that is not a reference
- Why does my variable not live long enough?
- Why doesn't println! work in Rust unit tests?
- How do I split a string in Rust?
- How do I create a HashMap literal?
- Is it possible to have stack allocated arrays with the size determined at runtime in Rust?
- How to implement a custom 'fmt::Debug' trait?
- How do I “use” or import a local Rust file?
- Read large files line by line in Rust
- What is the syntax to match on a reference to an enum?
- Converting a hexadecimal string to a decimal integer
- Error installing a crate via cargo: specified package has no binaries
- How to model complex recursive data structures (graphs)?
- How to iterate over and filter an array?
- Can I use the “null pointer optimization” for my own non-pointer types?
- Why does Rust allow mutation through a reference field using an immutable binding?
- Using generic trait methods like .into() when type inference is impossible
- Is it possible to implement methods on type aliases?
- What does “`str` does not have a constant size known at compile-time” mean, and what's the simplest way to fix it?
- Why can't I reuse a &mut reference after passing it to a function that accepts a generic type?
- What is the right way to allocate data to pass to an FFI call?
- If BufReader takes ownership of a stream, how can I read and write lines on it?
- Why does compilation not fail when a member of a moved value is assigned to?
- Mutating one field while iterating over another immutable field
- Is there a good way to include external resource data into Rust source code?
- Parameter type may not live long enough?
- Why does println! work only for arrays with a length less than 33?
- How to take ownership of T from Arc<Mutex<T>>?
- How can I modify self in a closure called from a member function?
- How to check if two variables point to the same object in memory?
- How do I use the Entry API with an expensive key that is only constructed if the Entry is Vacant?
- How to idiomatically / efficiently pipe data from Read+Seek to Write?
- How can I store a pattern in a variable in Rust?
- Can I have a static borrowed reference to a trait object?
- What expressions are allowed as the array length N in [_; N]?
- Is it possible to use a HashSet as the key to a HashMap?
- Type mismatches resolving a closure that takes arguments by reference
- Thread '<main>' has overflowed its stack when allocating a large array using Box
- How do I imply the type of the value when there are no type parameters or ascriptions?
- Is there any difference between matching on a reference to a pattern or a dereferenced value?
- Understanding and relationship between Box, ref, & and *
- What is monomorphisation with context to C++?
- Why are recursive struct types illegal in Rust?
- How does Rust implement reflection?
- Is there a good way to convert a Vec<T> to an array?
- How can I read one character from stdin without having to hit enter?
- How to read a struct from a file in Rust?
- Linking Rust application with a dynamic library not in the runtime linker search path
- What is the null pointer optimization in Rust?
- How can an operator be overloaded for different RHS types and return values?
- Is there a way to get the field names of a struct in a macro?
- Passing a JavaScript string to a Rust function compiled to WebAssembly
- Why does passing a closure to function which accepts a function pointer not work?
- Why “explicit lifetime bound required” for Box<T> in struct?
- “cannot move a value of type FnOnce” when moving a boxed function
- How do I create a Rust callback function to pass to a FFI function?
- What is the standard way to get a Rust thread out of blocking operations?
- How to set a Rust array length dynamically?
- Why can I iterate over a slice twice, but not a vector?
- What does “missing lifetime specifier” mean when storing a &str in a structure?
- What is the difference between a constant and a static variable and which should I choose?
- Sized is not implemented for the type Fn
- Is there a way to not have to initialize arrays twice?
- How do I overcome match arms with incompatible types for structs implementing same trait?
- Why does creating a mutable reference to a dereferenced mutable reference work?
- When is it necessary to circumvent Rust's borrow checker?
- How to implement idiomatic operator overloading for values and references in Rust?
- Can I take a byte array and deserialize it into a struct?
- How can I override a constant via a compiler option?
- How does a C-style struct with a bitfield get represented in a Rust #[repr(C)] struct?
- Meaning of '&variable' in arguments/patterns
- Extend lifetime of variable
- Pass self reference to contained object's function
- What is the difference between a let-rebinding and a standard assignment?
- What is the concrete type of a future returned from `async fn`?
- Why does an enum require extra memory size?
- How do I change a function's qualifiers via conditional compilation?
- Why can Serde not derive Deserialize for a struct containing only a &Path?
- Can I reassign a mutable slice reference to a sub-slice of itself?
- How to reference private types from public functions in private modules?
- How do I perform iterator computations over iterators of Results without collecting to a temporary vector?
- Using max_by_key on a vector of floats
- Mutable self while reading from owner object
- Why does pattern matching on &Option<T> yield something of type Some(&T)?
- How to prevent a value from being moved?
- References to traits in structs
- What is the equivalent of the join operator over a vector of Strings?
- How to print a Vec?
- How can I create enums with constant values in Rust?
- How can I create a function with a variable number of arguments?
- How to do error handling in Rust and what are the common pitfalls?
- How to match trait implementors
- How to include files from same directory in a module using Cargo/Rust?
- How to filter a vector of custom structs in Rust?
- Why do the lifetimes on a trait object passed as an argument require Higher Ranked Trait Bounds but a struct doesn't?
- Use of undeclared type or module `std` when used in a separate module
- How to create and write to memory mapped files?
- Why should I prefer `Option::ok_or_else` instead of `Option::ok_or`?
- How can I store an async function in a struct and call it from a struct instance?
- What is the purpose of the unit type in Rust?
- Should I avoid unwrap in production application?
- Can't borrow File from &mut self (error msg: cannot move out of borrowed content)
- Why is “&&” being used in closure arguments?
- How to iterate or map over tuples?
- Handling calls to (potentially) far away ahead-of-time compiled functions from JITed code
- How do I pass a closure through raw pointers as an argument to a C function?
- How to idiomatically copy a slice?
- Is it possible to declare the type of the variable in Rust for loops?
- Cannot borrow immutable borrowed content as mutable
- How can I force a struct's field to always be immutable in Rust?
- Is it possible to split a vector into groups of 10 with iterators?
- How to match on data type in Rust?
- Why can't `&(?Sized + Trait)` be cast to `&dyn Trait`?
- How to switch between Rust toolchains?
- How can I use a module from outside the src folder in a binary project, such as for integration tests or benchmarks?
- How to idiomatically alias a crate in Rust 2018?
- How do I unwrap an arbitrary number of nested Option types?
- Removing items from a BTreeMap or BTreeSet found through iteration
- Is there any way to restrict a generic type to one of several types?
- How can I find a subsequence in a &[u8] slice?
- Unable to create a polymorphic type because the trait cannot be made into an object
- How can I approximate method overloading?
- Is there a way to create a data type that only accepts a range of values?
- How to cast generic types that I know to be integers?
- Is it possible to map a function over a Vec without allocating a new Vec?
- Expected type parameter, found u8, but the type parameter is u8
- How to check in Rust if architecture is 32 or 64 bit?
- Problems with mutability in a closure
- Rust mpsc::Sender cannot be shared between threads?
- Rust lifetime error expected concrete lifetime but found bound lifetime
- Why does the compiler not complain that an iterator moved to a for loop is immutable?
- How do I convert a usize to a u32 using TryFrom?
- How to stop memory leaks when using `as_ptr()`?
- What does “Overflow evaluating the requirement” mean and how can I fix it?
- How can I guarantee that a type that doesn't implement Sync can actually be safely shared between threads?
- How to enforce that a type implements a trait at compile time?
- Why does using Option::map to Box::new a trait object not work?
- Is there syntax for moving fields between similar structs?
- How do you copy between arrays of different sizes in Rust?
- Program with multiple ampersand works fine
- How do I clone a closure, so that their types are the same?
- `cannot move out of dereference of `&mut`-pointer` while building a sorted linked list
- How do I apply a macro attribute to a function defined in a separate module?
- How does Rust pattern matching determine if the bound variable will be a reference or a value?
- Can macros match against constant arguments instead of literals?
- What is the syntax for a multiline string literal?
- What's the difference between self and Self?
- Best way to concatenate vectors in Rust
- How to get a release build with debugging information when using cargo?
- Lazy sequence generation in Rust
- How can I create an is_prime function that is generic over various integer types?
- How to terminate or suspend a Rust thread from another thread?
- How do I use conditional compilation with `cfg` and Cargo?
- How to pass rustc flags to cargo?
- How to write a custom attribute that injects code into a function
- Using generic iterators instead of specific list types
- Is it possible in Rust to delete an object before the end of scope?
- Split a string and return Vec<String>
- How to convert from &[u8] to Vec<u8>?
- Why does Rust disallow mutable aliasing?
- How do I create a map from a list in a functional way?
- Creating a vector of zeros for a specific size
- What's the benefit of using a Result?
- What is an auto trait in Rust?
- What are the actual runtime performance costs of dynamic dispatch?
- Is there a way to use the cfg(feature) check on multiple statements?
- How do I create a Vec from a range and shuffle it?
- What does the tt metavariable type mean in Rust macros?
- Is there a way to create a function pointer to a method in Rust?
- Can Rust optimise away the bit-wise copy during move of an object someday?
- Where do I get libpq source?
- Why does the usage of by_ref().take() differ between the Iterator and Read traits?
- Pass Python list to embedded Rust function
- Why is the Copy trait needed for default (struct valued) array initialization?
- Why does Valgrind not detect a memory leak in a Rust program using nightly 1.29.0?
- How to use the Pin struct with self-referential structures?
- Is there any way to allocate a standard Rust array directly on the heap, skipping the stack entirely?
- How do I cope with lazy iterators?
- Compiler asking for lifetime in struct when lifetime is given
- How can I statically register structures at compile time?
- Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?
- How to compose functions in Rust?
- What is unwrap in Rust, and what is it used for?
- What is the r#“”# operator in Rust?
- Step by step instruction to install Rust and Cargo for mingw with Msys2?
- What's the difference between `usize` and `u32`?
- Does Rust have a dlopen equivalent
- How would you implement a bi-directional linked list in Rust?
- How can I read a single line from stdin?
- Why is Rust's assert_eq! implemented using a match?
- How do I sum a vector using fold?
- What is the prelude?
- How do I write a Rust unit test that ensures that a panic has occurred?
- Generic struct over a generic type without type parameter
- How do I print output without a trailing newline in Rust?
- How does one round a floating point number to a specified number of digits?
- How to move one field out of a struct that implements Drop trait?
- How can I convert a string of numbers to an array or vector of integers in Rust?
- What is type ascription?
- How to execute cargo test using the nightly channel?
- What is the difference between `|_| async move {}` and `async move |_| {}`
- When is it safe to move a member value out of a pinned future?
- Does <'a, 'b: 'a> mean that the lifetime 'b must outlive the lifetime 'a?
- How can the location of Cargo's configuration directory be overridden?
- What does an empty set of parentheses mean when used in a generic type declaration?
- What is Vec<_>?
- Writing a generic function that takes an iterable container as parameter in Rust
- Generate sequential IDs for each instance of a struct
- How to set the thread stack size during compile time?
- How to call a method that consumes self on a boxed trait object?
- Is it possible to have multiple coexisting Rust installations?
- How can I use the format! macro in a no_std environment?
- How to map a parametrized enum from a generic type to another?
- Getting the error “the trait Sized is not implemented” when trying to return a value from a vector
- What is a cell in the context of an interpreter or compiler?
- Lifetime annotation for closure argument
- Convert two types into a single type with Serde
- Does Rust have a way to apply a function/method to each element in an array or vector?
- How can I locate resources for testing with Cargo?
- Compile-time generic type size check
- Is there any way to include binary or text files in a Rust library?
- How to build an Rc<str> or Rc<[T]>?
- How do I get the integer value of an enum?
- How to match over self in an enum?
- How to convert Option<&T> to Option<T> in the most idiomatic way in Rust?
- Why is “one type is more general than the other” in an Option containing a closure?
- What are the differences between specifying lifetime parameters on an impl or on a method?
- Why can't I use `&Iterator<Item = &String>` as an iterator?
- How do I write a function that takes both owned and non-owned string collections?
- How can I read from a specific raw file descriptor in Rust?
- Returning iterator of a Vec in a RefCell
- How to advance through data from the std::io::Read trait when Seek isn't implemented?
- Why is this Rust slower than my similar Python?
- How do I write a formatted string to a file?
- How to get pointer offset in bytes?
- Implementing mean function for generic types
- How do I iterate over a Vec of functions returning Futures in Rust?
- How do I declare an instance of one of my Rust structs as static?
- Remove single trailing newline from String without cloning
- Accessing the last element of a Vec or a slice
- How to escape curly braces in a format string in Rust
- How to swap the elements of an array, slice, or Vec?
- Expected bound lifetime parameter, found concrete lifetime
- How can I take an item from a Vec in Rust?
- How do I conditionally check if an enum is one variant or another?
- Is it possible to convert Option<Result<T, E>> to a Result<Option<T>, E> without using match?
- Is casting between integers expensive?
- How do I use a crate from another crate without explicitly defining a new dependency in my project?
- Access submodule from another submodule when both submodules are in the same main module
- How do I generate a vector of random numbers in a range?
- How do I get the minimum or maximum value of an iterator containing floating point numbers?
- How to implement `serde::Serialize` for a boxed trait object?
- How can I cause a panic on a thread to immediately end the main thread?
- Modifying chars in a String by index
- the trait `diesel::Expression` is not implemented for `bigdecimal::BigDecimal`
- Is it possible to store state within Rust's procedural macros?
- Why can't I use a function returning a compile-time constant as a constant?
- What's the idiomatic way to copy from a primitive type reference by value?
- Returning a RWLockReadGuard independently from a method
- How to avoid code duplication of different structs with semantically equal fields/properties?
- Can struct-like enums be used as types?
- Why does the address of an object change across methods?
- Generating unique IDs for types at compile time
- Sharing String between threads in Rust
- How to make a compiled Regexp a global variable?
- How can I port C++ code that uses the ternary operator to Rust?
- How to implement PartialEq for an enum?
- What must I cast an `u8` to in able to use it as an index in my vector?
- How to concatenate static strings in Rust
- How to quiet a warning for a single statement in Rust?
- Is it possible to flatten sub-object fields while parsing with serde_json?
- Why do proc-macros have to be defined in proc-macro crate?
- Can array lengths be inferred in Rust?
- Wrong number of type arguments: expected 1 but found 0
- Why doesn't the compiler report an error when a variable not declared as mutable is modified?
- Traits as a return value from a function
- missing lifetime specifier [E0106] on function signature
- Creating a static C struct containing strings
- Why is it possible to return a mutable reference to a literal from a function?
- Is it safe to `Send` struct containing `Rc` if strong_count is 1 and weak_count is 0?
- How to iterate over all byte values (overflowing_literals in `0..256`)
- Rust Trait object conversion
- The size for values of type `T` cannot be known at compilation time when using mem::size_of::<T> as an array length
- How do I implement the Chain of Responsibility pattern using a chain of trait objects?
- How do I share a HashMap between Hyper handlers?
- How to have multiple files with one module?
- How do I implement FromStr with a concrete lifetime?
- Why did compiler not error on this mutable borrow when there is an immutable borrowed string slice reference still in scope?
- How do I return an iterator that has a reference to something inside a RefCell?
- Error thrown citing match arms with incompatible types when pattern matching an Option
- Is it safe to logically split a borrow to work around a limitation of the NLL-enabled borrow-checker?
- Converting a char to &str
- Is it impossible to have a nested match on a recursive datatype that uses a smart pointer like a Box, Rc, or Arc?
- How to unwrap a &Result<_,_>?
- How can I flatten nested Results?
- How can I implement Deref for a struct that holds an Rc<Refcell<Trait>>?
- Why do I get “the type parameter is not constrained” when creating a blanket implementation for a closure trait (Fn)?
- Error using local modules in documentation tests
- Do we need to manually create a destructor for a linked list?
- Can associated constants be used to initialize the length of fixed size arrays?
- Is it possible to have a struct which contains a reference to a value which has a shorter lifetime than the struct?
- How do I share a generic struct between threads using Arc<Mutex<MyStruct<T>>>?
- What happened to std::num::Primitive?
- error[E0597]: borrowed value does not live long enough in While loop
- How do I execute an async/await function without using any external dependencies?
- Cannot call rusqlite's query because it expects the type &[&rusqlite::types::ToSql]
- How do I call Peekable::next based on the result of Peekable::peek?
- Recursive function if statement mismatched types in Rust
- (tokio::spawn) borrowed value does not live long enough — argument requires that `sleepy` is borrowed for `'static`
- Why doesn't Vec<T> implement the Display trait?
- Create a generic struct with Option<T> without specifying T when instantiating with None
- How to idiomatically iterate one half of an array and modify the structure of the other?
- Temporary value dropped while borrowed, but I don't want to do a let
- Is there a cleaner way to test functions that use functions that require user input in Rust?
- “cannot move out of borrowed context” and “use of moved value”
- What does “expected type `()`” mean on a match expression?
- Is it possible to initialize a variable from an environment variable at compilation time?
- Why do I get a conflicting implementations error when specializing a trait?
- Deserialize a Vec<Foobar<T>> as Vec<T> directly when Foobar has exactly one field
- What is the difference between type casting by setting the type of a variable and using `as`?
- What is the difference between traits in Rust and typeclasses in Haskell?
- Default function arguments in Rust
- Unable to compile Rust hello world on Windows: linker link.exe not found
- How do I parse a JSON File?
- error[E0554]: #![feature] may not be used on the stable release channel Couldn't install racer using cargo
- How I can mutate a struct's field from a method?
- How to get assembly output from building with Cargo?
- How do I get a slice of a Vec<T> in Rust?
- Where should I place a static library so I can link it with a Rust program?
- Why does Rust not have a return value in the main function, and how to return a value anyway?
- How to print structs and arrays?
- What are some use cases for tuple structs?
- Composition operator and pipe forward operator in Rust
- When to use Rc vs Box?
- Cannot infer an appropriate lifetime for a closure that returns a reference
- Create interface to C function pointers in Rust
- How can I zip more than two iterators?
- Type issue with Iterator collect
- Why isn't `std::mem::drop` exactly the same as the closure |_|() in higher-ranked trait bounds?
- Using a `let` binding to increase a values lifetime
- Rust manual memory management
- How to check release / debug builds using cfg in Rust?
- How to send output to stderr?
- How do I get an enum as a string?
- How do I tell Cargo to build files other than main.rs?
- How can I convert a hex string to a u8 slice?
- Cannot borrow captured outer variable in an `Fn` closure as mutable
- Why is std::rc::Rc<> not Copy?
- How to solve “returns a value referencing data owned by the current function” error in Rust?
- How to pass anonymous functions as parameters in Rust?
- How do I bound a trait with a supertrait that uses the trait's associated type as a parameter?
- What is the correct way in Rust to create a timeout for a thread or a function?
- How can I iterate over a vector of functions and call each of them?
- What does {:?} mean in a Rust format string?
- How to compile and run an optimized Rust program with overflow checking enabled
- Why is it useful to use PhantomData to inform the compiler that a struct owns a generic if I already implement Drop?
- Why does Rust require generic type declarations after the “impl” keyword?
- How can I create hashable trait objects / trait objects with generic method parameters?
- Transmuting u8 buffer to struct in Rust
- Why do I get the error “the trait `Foo` is not implemented for `&mut T`” even though T implements the trait?
- How to iterate a Vec<T> with the indexed position?
- How to multiply/divide/add/subtract numbers of different types?
- Cannot move out of captured outer variable in an `Fn` closure
- Tuple struct constructor complains about private fields
- How to convert a Rust char to an integer so that '1' becomes 1?
- How to programmatically get the number of fields of a struct?
- How does Rust know whether to run the destructor during stack unwind?
- Is there any way to unpack an iterator into a tuple?
- How to catch signals in Rust
- How do I use C preprocessor macros with Rust's FFI?
- How to debug Rust unit tests on Windows?
- Why do I get the error “there is no reactor running, must be called from the context of Tokio runtime” even though I have #[tokio::main]?
- Should I use enums or boxed trait objects to emulate polymorphism?
- Unable to pipe to or from spawned child process more than once
- What's the difference between &mut unsafe { } and unsafe { &mut }?
- Creating a callback system using closures
- How to use a file with a BufReader and still be able to write to it?
- How do I test private methods in Rust?
- How can I set default build target for Cargo?
- How does one create a HashMap with a default value in Rust?
- Read file character-by-character in Rust
- What does “cannot borrow as immutable because it is also borrowed as mutable” mean in an nested array index?
- Slice to fixed-size array
- How do I call a function that requires a 'static lifetime with a variable created in main?
- cargo test --release causes a . Why doesn't cargo bench?
- How to clone an array with length bigger than 32?
- Aliasing trait with associated types
- What does `impl` mean when used as the argument type or return type of a function?
- How to create a vector of boxed closures in Rust?
- How do I create two new mutable slices from one slice?
- Why are borrows of struct members allowed in &mut self, but not of self to immutable methods?
- Can I use a method or a function as a closure?
- Rust function does not have static lifetime?
- Is it possible to cast a trait object to another trait object?
- How to write a function that returns Vec<Path>?
- Store a collection of heterogeneous types with generic type parameters in Rust
- How can I remove duplicates from a vector of custom structs?
- Confused about variable lifetime in tokio::spawn(async move
- How can I box the contents of an iterator of a type that implements a trait?
- How to implement Eq and Hash for my own structs to use them as a HashMap key?
- What is the difference between these 3 ways of declaring a string in Rust?
- Can tests be built in release mode using Cargo?
- std::ops::Add or core::ops::Add?
- Is there any way to return from a function from inside a closure?
- Suppress panic output in Rust when using panic::catch_unwind
- Is there a more concise way to format .expect() message?
- What is the usage of the asterisk symbol in Rust?
- What is the correct type to use for an array index?
- Run additional tests by using a feature flag to “cargo test”
- How can I reuse a box that I have moved the value out of?
- How do you import and reference enum types in Rust?
- Is there a way to detect the compiler version from within a Rust program?
- Why do I get “does not live long enough” in a return value?
- How to use the same iterator twice, once for counting and once for iteration?
- Can I create a mutable slice &mut [u8] from a single byte (u8)?
- Why is the value moved into the closure here rather than borrowed?
- Parameter type may not live long enough (with threads)
- How to get only the directory portion of the current executable's path?
- How to generate documentation for private items
- Explicit lifetime declarations in trait objects held by structs
- Can you create a function that takes another function and a parameter and returns a lazy stream of nested function calls?
- How do I decide when to mark a function as unsafe?
- How do I return an Iterator that's generated by a function that takes &'a mut self (when self is created locally)?
- What's the difference between ref and & when assigning a variable from a reference?
- How do I compile a multi-file crate in Rust?
- Why do the coherence rules raise the error “the type parameter must be used as the type parameter for some local type”?
- Linking to a static lib compiled with MSVC
- What are idiomatic ways to send data between threads?
- Do literal integral values have a specific type in Rust?
- Is it possible to create a macro which counts the number of expanded items?
- In Rust, what is `fn() -> ()`?
- How to copy instead of borrow an i64 into a closure in Rust?
- How to borrow the T from a RefCell<T> as a reference?
- Shouldn't a loop spawned in a thread print repeatedly?
- What are the semantics of mutably borrowing a literal in Rust?
- How do I clone a Rc trait object and cast it to another trait object?
- Lifetime issue when using the Any trait to get references to structs containing references
- Do I have to use a usize to access elements of a vector?
- Is it possible to automatically implement a trait for any tuple that is made up of types that all implement the trait?
- How do I convert a boolean to an integer in Rust?
- Manipulating an object from inside a loop that borrows it
- Does this error message mean I can use pattern matching in for loops?
- How do I use Serde to (de)serialize arrays greater than 32 elements, such as [u8; 128]?
- Why does serde_json::from_reader take ownership of the reader?
- What is the difference between <T: Trait> Box<T> and &Trait / Box<Trait>?
- Is it possible to have a constructor function in a trait?
- Is there a built-in way to compare two iterators?
- Differences in Type inference for closures and functions in rust
- How can you easily borrow a Vec<Vec<T>> as a &[&[T]]?
- Is there a command to automatically add a crate to my Cargo.toml?
- Maximum size of an array in 32 bits?
- Can Rust macros create compile-time strings?
- How do I create a BinaryHeap that pops the smallest value, not the largest?
- What is the proper way to use bit array in Rust?
- Why are all indexes in Rust of type usize?
- Why can fixed-size arrays be on the stack, but str cannot?
- Returning a struct containing mutable values
- How to define a function with a generic fixed-length array?
- In Rust, can I instantiate my const array without hard-coding in the values? Compile-time evaluation?
- How to bind multiple fields of a boxed struct without getting “use moved value” error?
- How can I write data from a slice to the same slice?
- What is the idiomatic way to get the index of a maximum or minimum floating point value in a slice or Vec in Rust?
- core::marker::Sized not implemented for Foo
- Read from an enum without pattern matching
- Can an FFI function modify a variable that wasn't declared mutable?
- Why does an if without an else always result in () as the value?
- Why isn't this rvalue promoted to an lvalue as specified in the reference?
- Cannot move out of borrowed content when matching an enum
- Spawning tasks with non-static lifetimes with tokio 0.1.x
- Should a reference to an enum be dereferenced before it is matched?
- Get first element from HashMap
- How do I remove excessive `clone` calls from a struct that caches arbitrary results?
- Replace iter() with par_iter(): cannot borrow data mutably in a captured outer variable in an `Fn` closure
- How can I run clean-up code in a Rust library?
- Actix-Web reports “App data is not configured” when processing a file upload
- How can I simultaneously iterate over a Rust HashMap and modify some of its values?
- How do I encode a Rust Piston image and get the result in memory?
- Implementing a “cautious” take_while using Peekable
- How do I create an array of unboxed functions / closures?
- Borrow data out of a mutex “borrowed value does not live long enough”
- How to return a future combinator with `&self`
- Why is this Rust enum not smaller?
- Lifetimes for method returning iterator of structs with same lifetime
- Export function only to module test?
- expected trait core::ops::FnMut, found type parameter
- How do I handle an FFI unsized type that could be owned or borrowed?
- Raw pointer turns null passing from Rust to C
- How to wait for a list of async function calls in rust?
- How can I provide a reference to a struct that is a sibling?
- Cyclic reference of RefCell borrows in traversal
- Explain the behavior of *Rc::make_mut and why it differs compared to Mutex
- Confusion about Rust HashMap and String borrowing
- Struct with a generic trait which is also a generic trait
- How do you convert Vec<&mut T> to Vec<&T>?
- Mutable borrow in a getter not living long enough
- How to convert a tuple of references to a reference of a tuple?
- Why does Rust have both call by value and call by reference?
- Do a container's members inherit its mutability?
- Option<Receiver> Moved in Previous Loop Iteration
- How should I restructure my graph code to avoid an “Cannot borrow variable as mutable more than once at a time” error?
- Confused about using trait with lifetime as generic parameter constraint
- Generic implementation depending on traits
- How to conditionally deserialize JSON to two different variants of an enum?
- “Variable does not live long enough” when returning a Result containing a reference but it does live long enough
- What are the possible operators for traits in a where clause in Rust?
- Why it is not possible to use the … syntax in expressions?
- Is there a way to iterate over a mutable tree to get a random node?
- Rust closures from factory functions
- Why is a reference variable accessed via auto-deref moved?
- How to read and write to a TCPStream simultaneously?
- How to convert a Future into a Stream?
- Execute any bash command, get the results of stdout/stderr immediatly and use stdin
- Solutions to performance issues caused by large variant size of enum
- Why do changes to a const variable not persist between usages?
- Lifetimes when Deserializing JSON within a FromForm
- Rust error: borrow occurs after drop a mutable borrow
- What is the right smart pointer to have multiple strong references and allow mutability?
- Generic types that depend on another generic in Rust
- Why do I get “missing lifetime specifier” or “wrong number of type arguments” when implementing a trait for a struct?
- error[E0507]: Cannot move out of borrowed content
- Rust generics: Expected <T> found <Foo>
- Initialize a field of a struct using another field of the same struct
- Idiomatic callbacks in Rust
- What does Rust have instead of a garbage collector?
- No default toolchain configured after installing rustup
- Lifetimes in Rust
- Benchmarking programs in Rust
- How do I convert from an integer to a string?
- More concise HashMap initialization
- What is the idiomatic Rust way to copy/clone a vector in a parameterized function?
- How to make a reverse ordered for loop in Rust?
- What is the Rust equivalent to a try-catch statement?
- How to define test-only dependencies?
- Named breaks in for loops in Rust
- Reversing a string in Rust
- Is there a method like JavaScript's substr in Rust?
- In Rust how can I define or import a C struct from a third party library?
- Is it possible to generate and execute Rust code at runtime?
- How do I debug a failing cargo test in GDB?
- How can I pattern match against an Option<String>?
- Streamed upload to s3 with rusoto
- Does Rust's array bounds checking affect performance?
- MSVC toolchain is not supported. Please use GNU toolchain
- What are the semantics for dereferencing raw pointers?
- Does Rust have an equivalent to Python's list comprehension syntax?
- What is the recommended directory structure for a Rust project?
- What's the most idiomatic way of working with an Iterator of Results?
- When should I use `drain` vs `into_iter`?
- Why isn't it possible to compare a borrowed integer to a literal integer?
- Is it possible to download previous nightly builds?
- Expected String, found &str when matching an optional string
- Can I extend an enum with additional values?
- What are the differences between the GNU and MSVC Rust toolchain?
- Out of source builds (external build directory) with Cargo?
- Comparing string in Rust
- How to deserialize a JSON file which contains null values using Serde?
- Return an async function from a function in Rust
- Where should I put test utility functions in Rust?
- Getting “temporary value dropped while borrowed” when trying to update an Option<&str> in a loop
- cannot borrow as immutable because it is also borrowed as mutable
- What is the difference between casting to `i32` from `usize` versus the other way?
- Type definition with a trait: Differences of specifying an explicit lifetime bound?
- How do I get an absolute value in Rust?
- How to raise a number to a power?
- How do I convert an enum reference to a number?
- Possible to define generic closure?
- How do I ignore an error returned from a Rust function and proceed regardless?
- How do I initialize an array of vectors?
- Want to add to HashMap using pattern match, get borrow mutable more than once at a time
- Rust can't find crate
- What does Rust's unary || (parallel pipe) mean?
- Returning a String from Rust function to Python
- How do I process enum/struct/field attributes in a procedural macro?
- What is a stable way to iterate on a range with custom step?
- Split stacks unneccesary on amd64
- Sharing a reference to an instance of trait between threads
- Forcing the order in which struct fields are dropped
- Who borrowed a variable?
- How can I model a bidirectional map without annoying the borrow checker?
- Execute LLVM IR code generated from Rust/Python source code
- What is the best way to parse binary protocols with Rust
- Escaping commas in macro output
- Why using Rust does passing a mutable struct to a function result in immutable fields?
- Why does the compiler tell me to consider using a `let` binding" when I already am?
- Clone an Rc<RefCell<MyType> trait object and cast it
- Repeat string with integer multiplication
- What's the idiomatic way to append a slice to a vector?
- Result has no method called “unwrap()”?
- How do I assert an enum is a specific variant if I don't care about its fields?
- How can I randomly select one element from a vector or array?
- How do I choose a random value from an enum?
- could not find `blocking` in `reqwest`
- How can I use a dynamic format string with the format! macro?
- How can I convert a float to string?
- Calling dynamically linked Haskell code from Rust
- How do I share common code between Rust projects without publishing to crates.io?
- What is the difference between From::from and as in Rust?
- When do I need to specify explicit lifetimes in Rust?
- How does Rust deal with structs as function parameters and return values?
- Is it possible to combine two patterns, one with a match guard, in the same match arm?
- What is the correct way to write `Vec<u16>` content to a file?
- How do I create a static library in Rust to link with C code in Windows?
- Is there a way to release a binding before it goes out of scope?
- How do I use parameter overloading or optional parameters in rust?
- How to bound the type of Iterator::Item?
- Struct that owns some data and a reference to the data
- Trying to declare a String const results in expected type, found “my string”
- How to fold using a HashMap as an accumulator?
- “error: closure may outlive the current function” but it will not outlive it
- Why does Rust have a “Never” primitive type?
- Creating environment for closure in a macro in Rust
- How to tell what “features” are available per crate?
- Calling a function only known at runtime
- How do I run a project's example using Cargo?
- Creating a Vector of Vectors in Rust
- Mismatched types. Expected i32, found ()
- How do I gracefully shutdown the Tokio runtime in response to a SIGTERM?
- Dividing a const by a generic in Rust
- When would an implementation want to take ownership of self in Rust?
- How do I fix a missing lifetime specifier?
- Populating a static/const with an environment variable at runtime in Rust
- Which algorithm from petgraph will find the shortest path from A to B?
- How to select between a future and stream in Rust?
- How to parse multipart forms using abonander/multipart with Rocket?
- How to use a trait object to refer to struct that has generic methods
- Lifetime woes when using threads
- What's the idiomatic way to make a lookup table which uses field of the item as the key?
- Working with trait objects requiring sized
- How to iterate over mutable elements inside another mutable iteration over the same elements?
- How to lazily create map entry whose construction uses self in Rust
- How do I solve the error “the precise format of `Fn`-family traits' type parameters is subject to change”?
- How to add constraints on generics
- Calling trait static method from another static method (rust)
- How to make a struct field containing an Arc writable?
- How does trait specialization actually work?
- How to return a Rust closure to JavaScript via WebAssembly?
- Trying to return reference from RwLock, “borrowed value does not live long enough” Error
- Is there a way to use match() in rust when modifying the selector?
- How to make a request with client certificate in Rust
- How can I swap items in a vector, slice, or array in Rust?
- How to concatenate a char onto a string in Rust?
- field of struct is private when importing module
- “unresolved import — maybe a missing extern” When extern declaration exists
- Equivalent of constexpr from C++?
- Reasons for Dot Notation for Tuple
- Is there a way to trim a String without allocating another one?
- Copy files to the target directory after build
- What is the difference between storing a Vec vs a Slice?
- “cannot find macro” error in the macro's own doc test
- Why does a File need to be mutable to call Read::read_to_string?
- How to default-initialize a struct containing an array in Rust?
- How can I write crate-wide documentation?
- How to tell Cargo to use a git repository as source for an indirect dependency instead of crates.io?
- “a bin target must be available for 'cargo run'”
- In what scenarios are APIs that don't borrow preferred?
- How to convert Rust strings to UTF-16?
- Why does HashMap::get_mut() take ownership of the map for the rest of the scope?
- Why does T not implement AsRef<T>?
- Compile error when trying to use increment operator
- How can I pass a variable initialized in main to a Rocket route handler?
- Iterating through a Vec within a struct - cannot move out of borrowed content
- What does ParseError(NotEnough) from rust-chrono mean?
- Get an enum field from a struct: cannot move out of borrowed content
- Using Rust returned array in Python using ctypes
- Why does a doubly-reversed iterator act as if it was never reversed?
- How do I use the box keyword in pattern matching?
- Declaring array using a constant expression for its size
- How to call functions that aren't inside a module from the test module?
- How to create a DST type?
- Issuing a warning at compile time?
- How to check if function pointer passed from C is non-NULL
- Why nested iterator closures won't copy values from outer scope
- What's the difference between a trait's generic type and a generic associated type?
- What is the difference between :: and . in Rust?
- Given two absolute paths, how can I express one of the paths relative to the other?
- How to represent a pointer to a C array in Rust?
- Translating C preprocessor to Rust
- Is there a way to initialize an empty slice?
- Rust String concatenation
- Running a number of consecutive replacements on the same string
- From and Into traits and conversion of usize to f64
- How to call a C++ dynamic library from Rust?
- Is this the right way to read lines from file and split them into words in Rust?
- Why doesn't a nested reference to an array coerce to a slice?
- Why is there a borrow of a moved value when calling a method that takes self by value with an argument that also calls a method?
- Trait Object is not Object-safe error
- static struct with C strings for lv2 plugin
- How do I convert a vector of strings to a vector of integers in a functional way?
- Cannot return a vector slice - ops::Range<i32> is not implemented
- How can I create a Tokio runtime inside another Tokio runtime without getting the error “Cannot start a runtime from within a runtime”?
- How can I convert toml-rs result to std::collections::HashMap
- Is there a way to do validation as part of a filter in Warp?
- How to create a formatted String out of a literal in Rust?
- How to run multiple futures that call thread::sleep in parallel?
- The trait bound is not satisfied in Rust
- How do I match on a string read from standard input?
- How are Rust's Arc and Rc types different from having garbage collection?
- missing lifetime specifier [E0106] on type alias
- What is the proper way to create a new generic struct?
- Does type constructor implement Fn?
- Read an arbitrary number of bytes from type implementing Read
- Why can a function on a trait object not be called when bounded with `Self: Sized`?
- Using both git2 and hyper: openssl linked more than once
- Structure containing fields that know each other
- How to reach an HTTPS site via proxy with Hyper?
- Parsing an integer with nom always results in Incomplete
- Why multiple threads using too much memory when holding Mutex
- In memory database design
- Simple organization of Rust traits for “polymorphic” return
- How do I compare a vector against a reversed version of itself?
- How do you create a generic function in Rust with a trait requiring a lifetime?
- As I can make the vector is mutable inside struct
- Borrow checker on parent-child relation
- How can I avoid running some tests in parallel?
- How can I implement From for both concrete Error types and Box<Error> in Rust?
- How do I create a proc_macro_attribute?
- Is there a way to omit wrapper/root objects when deserializing objects with Serde?
- Using assert_eq or printing large fixed sized arrays doesn't work
- Unwrap and access T from an Option<Rc<RefCell<T>>>
- Is it possible to use Box with no_std?
- Why do I get an error that “Sync is not satisfied” when moving self, which contains an Arc, into a new thread?
- How to increase the stack size available to a Rust library?
- Reading immutable value inside spawned thread
- Why is a immutable pointer to a static immutable variable not Sync?
- Why does iterating a vector of i32s give references to i32 (&i32)?
- Cannot modify a struct field from implementation: “cannot borrow immutable borrowed content as mutable”
- How to remove the Nth node from the end of a linked list?
- Do Rust builder patterns have to use redundant struct code?
- Rust lifetime error
- How do I initialize an array so that Rust knows it's an array of `String`s and not `str`?
- Where did the 'static lifetime come from
- How to resolve lifetime error for mutable reference in Rust?
- Is it possible to create a wrapper around an &mut that acts like an &mut
- How do I convert from a char array [char; N] to a string slice &str?
- Why does the compiler not infer the concrete type of an associated type of an impl trait return value?
- Efficiency of flattening and collecting slices
- How to check if a function has been called in Rust?
- Why is it possible to have multiple mutable references with static lifetime in same scope
- How to save a file downloaded from S3 with Rusoto to my hard drive?
- How to get mutable struct from HashMap?
- A pattern for finite (game) state machine in Rust with changing behavior?
- How to call closure with closure as argument
- Rust serde deserializing a mixed array
- What does Some() do on the left hand side of a variable assignment?
- How can I construct and pass an iterator of iterators?
- How does Rust infer resultant types from From::<>::from()?
- Pattern matching on same arm with different types
- Implement IntoIterator for binary tree
- How do I collect the values of a HashMap into a vector?
- What is the idiomatic way to pop the last N elements in a mutable Vec?
- Why is assigning to a member of a pointer still valid after the pointer is moved?
- Could not exec the linker `cc` error when running “cargo build”
- Casting to a generic type
- How can I insert all values of one HashSet into another HashSet?
- Is there a difference between slicing and an explicit reborrow when converting Strings to &strs?
- How to read a single character from input as u8?
- Do logical operators short-circuit in Rust?
- How do I destructure a tuple so that the bindings are mutable?
- How to get subslices?
- What type is the “type ()” in Rust?
- What are the alternatives to pattern-matching floating point numbers?
- How do I share access to an AtomicBool between threads?
- Is there a rustc equivalent of -Wall -Werror?
- SIMD code works in Debug, but does not in Release
- Implementing a trait for closures results in bound/concrete lifetime mismatch
- Implement Debug trait for large array type
- Trait `x` is not implemented for the type `x`
- How difficult is it to allow parallel compilation of code with the Rust stable and nightly channels?
- Right way to have Function pointers in struct
- How do I return a flag on integer overflow in Rust?
- Mismatch between associated type and type parameter only when impl is marked `default`
- Exit from a block expression? (similar to function “return”)
- Is there a way to match two enum variants and also bind the matched variant to a variable?
- Capture all Regex matches into a vector
- How do I convert a string to hex in Rust?
- Vector of Generic Structs in Rust
- Is it possible to define structs at runtime or otherwise achieve a similar effect?
- Including a file from another that is not main.rs nor lib.rs
- Mutable borrow seems to outlive its scope
- Why does Rust not allow coercion to trait objects inside containers?
- How to get the size of a user defined struct? (sizeof)
- What is the idiomatic way of using an if-let binding when matching a `Result` and still being able to capture the error?
- What's the closest I can get to discriminating an enum by a char?
- How to convert DateTime<UTC> to DateTime<FixedOffset> or vice versa?
- How to return a newly created struct as a reference?
- How can I use multiple items in a Vec at a time in Rust?
- Should the Copy trait always be implemented if possible?
- Displaying the response body with Hyper only shows the size of the body
- The trait bound is not satisfied
- How do I use the Rust memory allocator for a C library that can be provided an allocator?
- Idiomatic way to count occurrences in a collection of Options
- Rust: Vec<Vec<T>> into Vec<T>
- Get the last element of a vector and push it to the same vector
- Parsing JSON with multiple representation in the same attribute
- How do I compute the dot product of two Rust arrays / slices / vectors?
- Will the non-lexical lifetime borrow checker release locks prematurely?
- Cargo on Windows behind a corporate proxy
- Boxed value does not live long enough
- Converting an enum where all variants implement the same trait to a box in Rust?
- How do I provide type annotations inline when calling a non-generic function?
- Rustc/LLVM generates faulty code for aarch64 with opt-level=0
- Generic function to compute a hash (digest::Digest trait) and get back a String
- Is it possible to deactivate file locking in cargo?
- When is the storage reclaimed for a resource that is no longer owned?
- “the type does not fulfill the required lifetime” when using a method in a thread
- Immutable reference after mutable borrow
- How to work around self borrowing with map .or_insert_with? Rust (1.11)
- Why does Rust want to borrow a variable as mutable more than once at a time?
- Differences between `fn` and `||` in type for an array of functions
- Most efficient way to fill a vector from back to front
- How to get a '&str' from a NUL-terminated byte slice if the NUL terminator isn't at the end of the slice?
- How do I make a struct for FFI that contains a nullable function pointer?
- Is there a way to pre- & un-leak a value?
- If `Into<String>` is not implemented for `&String`, why are these implementations conflicting?
- What kind of lifetime parameter do I have to use here when declaring a struct field object type
- How does Rust store enum values in arrays?
- How to get the current cursor position in file?
- Adding entries to a HashMap and getting references to them in a for loop
- Matching String: cannot move out of borrowed content
- Is there any way to explicitly write the type of a closure?
- Pointer-stashing generics via `mem::transmute()`
- How can I store multiple elements in a Rust HashMap for the same key?
- String's lifetime when returning Vec<&str>
- How do I write to a specific raw file descriptor from Rust?
- How can I prevent the Rust benchmark library from optimizing away my code?
- Using a macro to initialize a big array of non-Copy elements
- Returning and using a generic type with match
- Changing a node in a tree in Rust
- Why does pattern matching on a union have an unreachable pattern warning?
- Is there an easier way to make enum constants visible?
- How to make a new associated function with a struct that has a closure member?
- Is it possible to tell if a field is a certain type or implements a certain method in a procedural macro?
- How can I convert a collection of values into a HashMap that counts them?
- How to restrict generic implementation of a trait in Rust?
- What safety guarantees of Rust would be lost if not for object safety?
- How do I evaluate expressions in Rust's macro system?
- In Rust, how do you explicitly tie the lifetimes of two objects together, without referencing eachother?
- How to write a generic function taking any iterator of `u32` or `&u32`?
- Rust regex pattern - unrecognized escape pattern
- How do I store a result using Serde Zero-copy deserialization of a Futures-enabled Hyper Chunk?
- How do Rust closures work and how does it execute a closure?
- How should I reduce repetition in rust type signatures?
- Why does indexing an explicitly typed vector fail with a type inference error?
- Why can't I push into a Vec of dyn Trait unless I use a temporary variable?
- Rust function returning a closure: ``explicit lifetime bound required"
- borrowed value does not live long enough in loop
- with heap buffer?
- Check if length of all vectors is the same in Rust
- What is the Rust way of using continue from inside a closure?
- How can I convince the borrow checker to allow me to cache values?
- Is it possible to use the same File for reading and writing?
- What is this strange syntax where an enum variant is used as a function?
- Literal out of range warning when iterating over all values of u8
- How to store a reference without having to deal with lifetimes?
- Borrowed value does not live long enough when iterating over a generic value with a lifetime on the function body
- Is there a way to tell the Rust compiler to call drop on partially-initialized array elements when handling a panic?
- Result of Option::map does not live long enough
- How to efficiently push displayable item into String?
- Read lines from file, iterate over each line and each character in that line
- How can I better store a string to avoid many clones?
- How can I create 100 distinct labels with type &'static str?
- How to deserialize a subfield of a struct from the original struct's JSON with Serde?
- How to use a reference to a FnOnce closure?
- Is it possible to create a macro to implement builder pattern methods?
- Nesting an iterator's loops
- Lifetime of Option::map's argument
- How to define mutual recursion with closures?
- Is it possible to conditionally compile a code block inside a function?
- Cannot borrow variable as mutable more than once at a time after calling a &'a mut self method
- What is the difference between library crates and normal crates in Rust?
- Using a HashSet to canonicalize objects in Rust
- Understanding scope and shadowing matches
- Why is changing hyphenated crate names to underscored names possible and what are the rules for naming under such ambiguous scenarios?
- “does not live long enough” error when iterating through a linked list
- Mutable iterator for Vec<Vec<(K, V)>>
- Does Cargo support custom profiles?
- Struct needs a lifetime because?
- Can different threads write to different sections of the same Vec?
- Storing a closure in a HashMap
- “cannot move out borrowed content” when assigning a variable from a struct field
- How can I return an iterator over a locked struct member in Rust?
- What's the difference between var and _var in Rust?
- Why can't const functions in Rust make calls to associated functions?
- How do I convert an async / standard library future to futures 0.1?
- Should Rust implementations of From/TryFrom target references or values?
- Is there a way to enforce that a Rust raw pointer is not used after returning from a specific stack frame?
- How do I clone a HashMap containing a boxed trait object?
- When do you need to use type annotations?
- Rust lifetime issue in loop
- Transmuting `bool` to `u8`
- Why does my iterative implementation of drop for a linked list still cause a ?
- The trait `std::future::Future` is not implemented for `std::result::Result<reqwest::Response, reqwest::Error>`
- How to initialize immutable globals with non-const initializer in Rust?
- Is there a way to drop a static lifetime object in Rust?
- The lifetime of self parameter in Rust when using threads
- Multiple uses of self in same function
- How can I reduce the verbosity of matching every call that returns a Result or Option?
- How can I avoid dynamic dispatch?
- Implement trait for trait with static function
- How to implement prepend for a linked list without needing to assign to a new variable?
- How do I replace a single character in a string in constant time and using no additional space?
- How to implement the EVM Trait for a Substrate Runtime?
- How can I use Serde's custom (de)serialization to update a subset of arbitrary input?
- Why does the compiler warn about an uninitialized variable even though I've assigned each field of that variable?
- What's the preferred way to create a String from a literal?
- Initialize array holding struct more efficiently
- Access to self from the parameters of a macro that creates a struct
- UdpSocket.recv_from fails with “end of file” but I can see the incoming package in Wireshark
- Function type vs Closure type
- Getting first member of a BTreeSet
- How to create an iterator that yields elements of a collection specified by a list of indices in Rust?
- Why is it necessary to add redundant trait bounds even though my trait uses those same traits as bounds?
- Is there any way to convert Box<Box<Foo + Send>> to Box<Box<Foo>>?
- Can not move out of type which defines the `Drop` trait [E0509]
- Can you specify a non-static lifetime for threads?
- Trait mismatch for function argument
- Can I conditionally compile my Rust program for a Windows subsystem?
- Lifetime of references in closures
- What is a function signature and type?
- Returning default value from function when result is error
- Get a random character from a string and append to another string
- How to coerce a Vec of structs to a Vec of trait objects?
- Can't figure out a function to return a reference to a given type stored in RefCell<Box<Any>>
- Can a trait have a supertrait that is parameterized by a generic?
- Why is assigning an integer value from a vector to another variable allowed in Rust?
- How do I keep a mutable reference to the last node while building a linked list?
- What is the right way to share a reference between closures if the value outlives the closures?
- How to pattern match a Box to get a struct's attribute?
- What can be done with Rust's generic FromStr object?
- Alternative way to handle GTK+ events in Rust
- How do intertwined scopes create a “data race”?
- How to properly pass Iterators to a function in Rust
- How do I fix Encodable/Decodable deprecation?
- How can I pass a FnMut closure to a function using a reference in Rust?
- How do I make sure that file handle for every `Child` process is released after every iteration?
- How do I fix “wrong number of type arguments” while trying to implement a method?
- Is it possible to use the standard library to spawn a process without showing the console window in Windows?
- Why must I use macros only used by my dependencies
- Is there a simple way to use an integral generic type in Rust?
- UDP messages from C++ are not received by Rust
- Can't import a module from another crate - unresolved import
- Better way to declare uninitialized variables
- How can I require that a reference to a generic type can be compared for equality against the generic type?
- Value doesn't live long enough when put in struct
- Why does the compiler need an implementation of a trait to call a default free function?
- How to send a key using winapi's SendInput?
- Dereferencing boxed struct and moving its field causes it to be moved
- How to define lifetimes on a Fn trait bound returning references?
- Specifying generic parameter to belong to a small set of types
- How do I understand the data-layout strings of Rust compiler targets?
- How can I fix the error E0277: the trait bound `[usize]: std::marker::Sized` is not satisfied?
- Why an `Arc<Mutex<dyn MyTrait>>` gets automatically the static lifetime?
- How do I declare a regular (non-closure) function that adheres to a function type?
- Why do I get the error “cannot borrow x as mutable more than once”?
- Can I free memory from Vec::into_boxed_slice using Box::from_raw?
- `cargo build` fails with linking error “link.exe failed: exit code: 325595”
- Impl Add for type alias tuple (f64, f64)
- Error message with unboxed closures
- What is the owner of literal reference such as &4 in Rust?
- How to fix: expected concrete lifetime, but found bound lifetime parameter
- What is the syntax for an if-let statement?
- Expected concrete lifetime, found bound lifetime parameter when storing a fn in a struct
- How do I bubble up an error from the closure passed to regex::Regex::replace?
- Can I create a match against a generic type that implements Pattern?
- Using functions defined in primitive modules
- How can I use match on a pair of borrowed values without copying them?
- How to write a panic! like macro in Rust?
- Why are secp256k1 uncompressed public keys not formatted as expected?
- fancy-regex crate multiple matches
- How do I specify a type that cannot be inferred when using if let?
- What is an example of contravariant use in Rust?
- How to use take_while with futures::Stream?
- Warp filter moving variable out of its environment
- How to set a variable inside a gtk-rs closure?
- How to convert hex string to a float in Rust?
- Cannot infer an appropriate lifetime when storing Peekable iterators in a vector
- Borrowed value does not live long enough, moved due to use in closure E0597
- Is it possible to cast type `std::result::Result` to `minhook::Hook`?
- Why Rust allows declaring same variable name twice in a scope?
- Why is there a large performance impact when looping over an array with 240 or more elements?
- What are the Rust types denoted with a single apostrophe?
- How can I compile Rust code to run on a Raspberry Pi 2?
- What are the performance impacts of 'functional' Rust?
- In Rust, what is the difference between clone() and to_owned()?
- How can I implement the observer pattern in Rust?
- How do I find the index of an element in an array, vector or slice?
- What does the box keyword do?
- How do I write a multi-line string in Rust?
- How to manually return a Result<(), Box<dyn Error>>?
- How does Rust guarantee memory safety and prevent segfaults?
- How to make a Rust mutable reference immutable?
- Why is a borrowed range not an iterator, but the range is?
- How does Rust achieve compile-time-only pointer safety?
- Cross compile rust-openssl for Raspberry Pi 2
- Build HashSet from a vector in Rust
- How to create a static array of strings?
- Convert float to integer in Rust
- How can I specify binary-only dependencies?
- What are the main differences between a Rust Iterator and C++ Iterator?
- How to check whether a path exists?
- Why does Rust have struct and enum?
- When would you use a Mutex without an Arc?
- Why does the Rust compiler allow index out of bounds?
- Why does Rust allow calling functions via null pointers?
- What is the difference between loop and while true?
- “use of unstable library feature 'collections'” using nightly
- How to provide standard library sources for IntelliJ IDEA's Rust project?
- What is the difference between how references and Box<T> are represented in memory?
- How can I force `build.rs` to run again without cleaning my whole project?
- Cross-compiling Rust from Windows to ARM Linux
- Differences between a pointer and a reference in Rust
- How can a closure using the `move` keyword create a FnMut closure?
- How to check if a string contains a substring in Rust?
- How do I convert a string to a list of chars?
- How to convert iterator of chars to String?
- Sort HashMap data by value
- Can I use '<' and '>' in match?
- Array as a struct field
- How to read (std::io::Read) from a Vec or Slice?
- What exactly does '#[derive(Debug)]' mean in Rust?
- What is the syntax and semantics of the `where` keyword?
- Is it possible to cause a memory leak in Rust?
- Is there any straightforward way for Clap to display help when no command is provided?
- Is it possible to share a HashMap between threads without locking the entire HashMap?
- Format std::time output
- Are nested matches a bad practice in idiomatic Rust?
- Why does this code generate much more assembly than equivalent C++/Clang?
- How do I use Serde to serialize a HashMap with structs as keys to JSON?
- Is there an intrinsic reason explaining why Rust does not have higher-kinded-types?
- Nested iteration in Rust macros
- Writing to a file or stdout in Rust
- Higher Ranked Trait Bound and boxed closures lifetime issue
- How I can I lazily read multiple JSON values from a file/stream in Rust?
- How do I access exported functions inside a crate's “tests” directory?
- How should you do pointer arithmetic in Rust?
- How can I generate a random number within a range in Rust?
- Dividing two integers doesn't print as a decimal number in Rust
- Why does calling a method on a variable prevent Rust from inferring the type of the variable?
- How can I convert char to string?
- How can I get a random number in Rust 1.0?
- What is the syntax for specifying dependency versions in Cargo?
- Mysterious lifetime issue while implementing trait for dyn object
- Is there any built in way to “combine” two Options?
- Convert String to SocketAddr
- What does the exclamation point mean in a trait implementation?
- Include git commit hash as string into Rust program
- How are the generic functions and types stored in an rlib?
- Is there a published language format standard for Rust yet?
- Cannot use `?` operator for functions that return Result<(), error>
- Why doesn't ops::Range<T> implement Copy, even if T is Copy?
- Why does Rust not allow the copy and drop traits on one type?
- Is it possible to print a backtrace in Rust without panicking?
- How do I print variables in Rust and have it show everything about that variable, like Ruby's .inspect?
- Reference to element in vector
- Creating a simple Rust daemon that listens to a port
- Passing a list of strings from Python to Rust
- What's the difference between `&` and `ref`?
- Why use `ptr::write` with arrays of `MaybeUninit`s?
- Portable binaries with Rust
- Does Rust automatically dereference primitive type references?
- What are the steps necessary to pass R objects to a Rust program?
- Is it possible to share data with threads without any cloning?
- Why do I get a “match arms have incompatible types” error in a function returning `impl Trait`?
- How to compile a static musl binary of a Rust project with native dependencies?
- How do I process a range in slices in Rust?
- How do I find the key for a value in a HashMap?
- Why is `Future::poll` not called repeatedly after returning `NotReady`?
- What is the requirements for running a Rust compiled program on another Windows machine?
- How can I join all the futures in a vector without cancelling on failure like join_all does?
- Mutable borrow automatically changes to immutable?
- How do you make a range in Rust?
- In Rust, what is the purpose of a mod.rs file?
- Is bool guaranteed to be 1 byte?
- What is the idiomatic way to write a for loop without using the iterator value?
- How to run setup code before any tests run in Rust?
- How do I concatenate two slices in Rust?
- How to remove Rust compiler toolchains with Rustup?
- How to sort HashMap keys when serializing with serde?
- Is there a way to deserialize arbitrary JSON using Serde without creating fine-grained objects?
- What are the differences between the multiple ways to create zero-sized structs?
- Unable to create a local function because “can't capture dynamic environment in a fn item”
- Extracting a file extension from a given path in Rust idiomatically
- How to return Ok unit type of std::result<(), E>?
- How do I print a vector of u8 as a string?
- The “trait Clone is is not implemented” when deriving the trait Copy for Enum
- Why do slices in a structure require a lifetime, but not vectors?
- How to restrict the construction of struct?
- How can I 0-pad a number by a variable amount when formatting with std::fmt?
- How to check if there are duplicates in a slice?
- How can I free memory allocated by Rust code exposed in WebAssembly?
- How do I sort a map by order of insertion?
- Is there a trait supplying `iter()`?
- What is the correct type for returning a C99 `bool` to Rust via the FFI?
- What's the most idiomatic way to test two Options for equality when they contain values which can be tested for equality?
- Trait implementing Sized
- Start another program then quit
- Concatenate array slices
- How to change value inside an array while iterating over it in Rust
- How do I initialize an opaque C struct when using Rust FFI?
- Is it possible to send closures via channels?
- Why can I not access a variable declared in a macro unless I pass in the name of the variable?
- Does Rust devirtualize trait object function calls?
- Why does this mutable borrow live beyond its scope?
- Is there a way to prevent Weak::new() from over allocating?
- Ignore benchmarks when using stable/beta
- Why does Rust check array bounds at runtime, when (most) other checks occur at compile time?
- How to return an early response from an actix-web middleware?
- What is a macro for concatenating an arbitrary number of components to build a path in Rust?
- What does &* combined together do in Rust?
- Why does modifying a mutable reference's value through a raw pointer not violate Rust's aliasing rules?
- Is it safe and defined behavior to transmute between a T and an UnsafeCell<T>?
- How to specify a lifetime for an Option<closure>?
- How to get the behaviour of `git checkout …` in Rust git2
- Where is a MutexGuard if I never assign it to a variable?
- Running websocket and http server on the same port (Rust, hyper)
- Borrow-check error with variable not living long enough in nested lambda
- Can a struct containing a raw pointer implement Send and be FFI safe?
- How does interior mutability work for caching behavior?
- How do I disable the underlining of Rust variables and their methods in Visual Studio Code?
- How can I copy a vector to another location and reuse the existing allocated memory?
- Counting length of repetition in macro
- How do I handle/circumvent “Cannot assign to … which is behind a & reference” in Rust?
- Storing a closure in a structure — cannot infer an appropriate lifetime
- Equivalent of specific template usage in C++ for Rust
- Unable to port C++ code that inserts into a trie to Rust due to multiple mutable borrows
- Should end user utilities/applications be registered on crates.io?
- modifying a field while pattern matching on it
- What's the fastest idiomatic way to mutate multiple struct fields at the same time?
- cannot borrow `*self` as mutable because it is also borrowed as immutable
- How to call Rust async method from Python?
- How to call method with &mut self from inside another method of the same type?
- How do I write a Serde Visitor to convert an array of arrays of strings to a Vec<Vec<f64>>?
- Why does .parse() convert “42” to f64 but fails convert “42.0” to i32?
- Why does the borrow checker disallow a second mutable borrow even if the first one is already out of scope?
- Redirect output of child process spawned from Rust
- Borrowed value does not live long enough when creating a Vec
- What can ref do that references couldn't?
- How can I access a C global variable/constant in Rust FFI?
- How to set a field in a struct with an empty value?
- Create shared C object linked to Rust dylib for use in R
- How do I create a by-value iterator on the stack?
- How to return an anonymous type from a trait method without using Box?
- Re-using a range for iteration
- Can I use Deref<Target = Other> to inherit trait implementations from Other?
- Comparing a string against a string read from input does not match in Rust
- Mutable borrow more than once
- Is there an exhaustive list of standard attributes?
- Collect into owned vec of owned strings in rust
- How to correctly call async functions in a WebSocket handler in Actix-web
- Is a returned value moved or not?
- Capture both stdout & stderr via pipe
- Getting multiple URLs concurrently with Hyper
- Can I get a Rust array's length with only a type, not a concrete variable?
- How to overload the 'new' method?
- How can I change a reference to an owned value without clone?
- Giving a lazy_static its proper type in Rust
- How to convert a *const pointer into a Vec to correctly drop it?
- Difficulty aggregating matches with |
- Idiomatic way to declare 2D, 3D vector types in Rust?
- How do I reverse a string in 0.9?
- When is it appropriate to mark a trait as unsafe, as opposed to marking all the functions in the trait as unsafe?
- Most idiomatic way to create a default struct
- How do I declare a “static” field in a struct in Rust?
- How do I change the default rustc / Cargo linker?
- How to get a slice from an Iterator?
- How do I idiomatically convert a bool to an Option or Result in Rust?
- Is there anything in Rust to convert a binary string to an integer?
- Where is the sine function?
- Why can Cell in Rust only be used for Copy and not Clone types?
- Compare a generic number argument with a constant
- Alternatives to matching floating point ranges
- How can I unpack (destructure) elements from a vector?
- Are operators in core really defined circularly?
- Are raw pointers to temporaries ok in Rust?
- Do Rust lifetimes influence the semantics of the compiled program?
- Iterate over std::fs::ReadDir and get only filenames from paths
- Move struct into a separate file without splitting into a separate module?
- How do I set the lifetime of a return value as the lifetime of the variable I move into it?
- How do I return an owned array from a function?
- How can I unpack a tuple struct like I would a classic tuple?
- How to emit LLVM-IR from Cargo
- How do I use a custom comparator function with BTreeSet?
- How do I return a &Path from a function?
- Main difference between if and if-let in Rust
- Does Rust erase generic types or not?
- Is mem::forget(mem::uninitialized()) defined behavior?
- How to access value in RefCell properly
- How can I define a function with a parameter that can be multiple kinds of trait objects?
- Parsing a char to u32
- Do aliasing mutable raw pointers (*mut T) cause undefined behaviour?
- How to init a Rust vector with a generator function?
- How do I parse a string to a list of floats using functional style?
- How to set logging level while running cargo test?
- What is the difference between tuples and array in rust?
- Why does Rust's u64.pow expect a u32?
- Mysterious borrow scope extension
- Assign a single value to multiple variables in one line in Rust?
- What is a good way of cleaning up after a unit test in Rust?
- When to use self, &self, &mut self in methods?
- What is the correct term for _ in a type hint?
- Using a crate in a Cargo project errors with "maybe a missing extern crate"
- Confusion between [T] and &[T]
- Is it possible to store a Rust struct containing a closure in a different struct?
- Default mutable value from HashMap
- Return value from match to Err(e)
- "Connection reset by peer" when benchmarking a simple Rust HTTP server with ab
- Initializing an array of strings in Rust
- What is the idiomatic way to convert a String to &str?
- Is it valid to wake a Rust future while it's being polled?
- How to use variadic macros to call nested constructors?
- Conditionally return empty iterator from flat_map
- How to prepend a slice to a Vec
- How to use nix's ioctl?
- How can I convert a f64 to f32 and get the closest approximation and the next greater or smaller value?
- How can I create hygienic identifiers in code generated by procedural macros?
- How can I sum a range of numbers in Rust?
- Constant values in Rust generics
- How to lend a Rust object to C code for an arbitrary lifetime?
- What is the difference between `then`, `and_then` and `or_else` in Rust futures?
- Can Rust code compile without the standard library?
- Can I set an LLDB breakpoint when multiple Rust source files share the same name?
- Efficiently chunk large vector into a vector of vectors
- Cannot get `Regex::replace()` to replace a numbered capture group
- Convert boxed trait to mutable trait reference in Rust
- How to move values out of a vector when the vector is immediately discarded?
- How do I annotate the type of an empty slice in Rust?
- Is it possible to close a TcpListener in Tokio?
- TCP tunnel over SSH in Rust
- How can I merge two JSON objects with Rust?
- How do I configure actix-web to accept CORS requests from any origin?
- Do values in return position always get allocated in the parents stack frame or receiving Box?
- Type inference and borrowing vs ownership transfer
- Is there an alternative or way to have Rc<RefCell<X>> that restricts mutability of X?
- What is the correct way to convert a Vec for FFI without reallocation?
- How many lines are covered by the Rust conditional compilation attribute?
- Appending to a string inside a for loop
- How do I declare a static variable as a reference to a hard-coded memory address?
- Interior mutability abuse in API design?
- Why is Fn derived from FnMut (which is derived from FnOnce)?
- Can I write tests for invalid lifetimes?
- "thread '<main>' has overflowed its stack" when constructing a large tree
- use of unstable library feature - how can I fix those?
- When adding `#![no_std]` to a library, are there any disadvantages or complications for the users of that library?
- Tree traversal in Rust vs Borrow Checker
- Ownership and conditionally executed code
- Calling closures from an array in Rust
- What is the standard way to call a mutable method in a Rc-wrapped object?
- multithreading in D with for loop
- Why recursive async functions require 'static parameters in Rust?
- Cannot borrow data mutably in a `&` reference in array
- How can I convert the lower/upper 8 bits of a u16 to a u8 in Rust?
- How to join elements of HashSet into a String with a delimiter
- How to export a symbol from a Rust executable?
- How to publish a constant string in the Rust FFI?
- Is there a way to directly access a field value in an enum struct without pattern matching?
- How can I group consecutive integers in a vector in Rust?
- Unable to find crate that is listed in [build-dependencies] section
- How can I use a cgmath::Matrix as a uniform parameter in glium?
- Passing closure to trait method: expected type parameter, found closure
- Why does my trait need a lifetime parameter?
- Is it possible to use a C++ library from Rust when the library uses templates (generics)?
- How do I allocate an array at runtime in Rust?
- Why does calling tokio::spawn result in the panic "SpawnError { is_shutdown: true }"?
- How do I create a Regex from a user-provided string which contains regex metacharacters?
- How can I convert a Vec<T> into a C-friendly *mut T?
- FFI example from book cannot find -lanneclib under Windows
- How do I use async/await syntax with Tokio?
- Why do I need to dereference a variable when comparing it but not when doing arithmetic?
- How to store a void* reference to a struct in Rust?
- How to implement a multi-level currying function in Rust?
- How can I sort an iterator without putting it all in a vector?
- Is there a feature like NodeJS's EventEmitter in Rust?
- How do I perform a delete with sub-query in Diesel against a Postgres database?
- How to pass compiler flags to a sub crate in Rust?
- Turn off default-features in dependency of dependency
- Trait method that can be implemented to either return a reference or an owned value
- How do I return a Result containing every error from an iterator of Results, not just the first one?
- Obtaining JavaScript import object entries from a WebAssembly .wasm module
- How to properly wrap a C function pointer in Rust?
- How to create a thread local variable inside of a Rust struct?
- How does Rust know which types own resources?
- Cannot resolve T: serde::Deserialize<'a> when deriving Deserialize on a generic struct
- Reading and writing to a long-running std::process::Child
- How can multiple threads share an iterator?
- Override build script for a dependency
- Force/coerce evaluation of closure signature
- cargo +nightly error : no such subcommand
- Error when using operators with a generic type
- Why can't I write a function with the same type as Box::new?
- How to return a generic Map struct?
- lifetime of function pointer is for<'a, '_> while it should be for<'r>
- How to import a crate dependency when the library name is different from the package name?
- What are the use cases of raw identifiers besides new keywords?
- Does Iterator::collect allocate the same amount of memory as String::with_capacity?
- How to run for loop on elements of a vector and change the vector inside the for loop and outside the for loop in rust?
- read file(not utf-8) line by line?
- How to link a dynamic Rust library using only rustc and not cargo?
- How to include ASCII art/diagrams in Rust source-code comment documentation?
- How do I build a Cacher in Rust without relying on the Copy trait?
- How to init a constant matrix with ndarray?
- string concat error: expected a literal
- Multithreaded application fails to compile with error-chain
- What happens on the stack when one value shadows another in Rust?
- How to initialize a struct with a series of arguments
- How do I efficiently iterate through a `Vec<Vec<T>>` row by row?
- count partial duplicates in Vec of structs with a custom function
- Storing an unboxed closure with a reference arg in a HashMap
- How to borrow two disjoint fields when the borrow is behind a method call?
- Rust minimal compiled program size
- Rust and loader paths (@rpath, @loader_path) on OS X
- crate name with hyphens not being recognized
- Why can't a mutable variable be used when a mutable reference to that variable can?
- How can I spawn asynchronous methods in a loop?
- How to parse single tokens in rust macros
- Is it legal to cast a struct to an array?
- How to get pointer offset of an enum member in bytes?
- How to mark use statements for conditional compilation?
- Is undefined behavior possible in safe Rust?
- C to Rust and back "pointer being freed was not allocated" on Rust side
- Passing a closure that modifies its environment to a function in Rust
- How does one have a for loop borrow the iterator?
- Trouble with Rust Lifetime in Generic function
- How can I mass implement Deserialize for all types that implement a specific trait?
- How to avoid hard-coded values in Rust
- Compiling Rust static library and using it in C++: undefined reference
- Why does the implementation of `FromIterator` use an `IntoIterator` instead of an `Iterator`?
- Passing mutable context into callbacks
- type parameter for function vs struct (lifetime issue)
- Mutable Arc in Rust
- Is there any way to look up in HashSet by only the value the type is hashed on?
- Unable to use std::process::Command - No such file or directory
- Convert binary string to hex string with leading zeroes in Rust
- How to call a trait method without a struct instance?
- Is it possible to exclude reference arguments in a generic function?
- How does Rust know which trait methods are required or provided?
- Reading a large file line by line and avoiding utf8 errors in Rust
- Insert in arbitrary nested HashMap
- How is my reference to a struct member still valid after the struct was moved?
- How do I make a dynamic index to get the value of a tuple?
- Getting "borrowed value does not live long enough" Error While Trying to Pass a Boxed dyn Trait into a Function
- How do I pass a struct with type parameters as a function argument?
- Is it possible to use a single generic for both key and value of a HashMap?
- How do I apply a limit to the number of bytes read by futures::Stream::concat2?
- How can I use std::convert::Into to convert something that might fail?
- closure requires unique access
- Why do I get "overflow evaluating the requirement" when rewriting a function using Diesel's traits into a trait method?
- How to print both the index and value for every element in a Vec?
- How can I optionally pass rustc flags depending on a Cargo feature?
- Is it possible to pass a tuple struct constructor to a function to return different types of values?
- Why does the reqwest HTTP library return binary data instead of a text body?
- How can I return a &str from Strings in an enum in a method impl?
- How to make trait aliases?
- How to return a vector containing generic values
- Storing value of a pointer in another pointer in Rust
- How do I collect from multiple iterator types?
- Best way to format a file name based on another path in Rust
- Lifetime issues with a closure argument in Rust
- How to copy a raw pointer when implementing a linked list in Rust?
- How to infer an appropriate lifetime for an implementation using lifetimes for structs and impl?
- Recursive generator in Rust causing "recursive type" error; workaround?
- How can I match the root path with a Warp filter?
- How can I use shared logic from different files?
- Sorting vector of x/y coordinates
- Safe and efficient way to use String and its pointer in different collections
- How to use function return value directly in Rust println
- "if" statement gets executed when the condition is "false" in a Rust program, how to understand it?
- How do I initialize a struct field which is a mutable reference to an Option?
- Cannot borrow as mutable more than once error in a loop
- Path of references on a tree structure
- Is there a elegant implement of the Iterator for the Rc<RefCell<T>> in Rust?
- How can I stop the hyper HTTP web server and return an error?
- Am I incorrectly implementing IntoIterator for a reference or is this a Rust bug that should be reported?
- How do I call a C function which returns many types of different function pointers?
- Why is a raw HTTP request extremely slow?
- How to recursively take the last argument of a macro?
- error: failed to run custom build command for `onig_sys v61.1.0`
- Comparing functions for equality in Rust
- Should I pass a mutable reference or transfer ownership of a variable in the context of FFI?
- PhantomData use case
- Deleting a node from singly linked list has the error "cannot move out of borrowed content"
- Borrowed value does not live long enough
- Why does &v[1] + &v[2] have the same result as v[1] + v[2] in Rust?
- but there is no value for it to be borrowed from
- trait cannot be made into an object
- Why should I use Cargo if "cargo build" is slower than running rustc directly?
- Parallel computing of array elements in rust
- Can I maintain a Vec of TcpStreams to write to them across threads whenever one of them reads a new input?
- How can I read a timestamp with timezone (timestamptz) value from PostgreSQL in Rust?
- Split a futures connection into a sink and a stream and use them in two different tasks
- How do you call future::select on a Future stored in a struct from a method that takes &mut self?
- Cannot use methods from the byteorder crate on an u8 array: no method found for type in the current scope
- Rust Can't import Singleton From global space into another module in another file
- Why is `impl` needed when passing traits as function parameters?
- Type casting for Option type
- Why does this immutability error only happens if declaration is outside the loop?
- Instantiating a 2d Vec in a Struct?
- How to allocate a string before you know how big it needs to be
- Why do I get "the trait bound Future is not satisfied" when using .await or in a macro like `join!`?
- How to lock a Rust struct the way a struct is locked in Go?
- Rust & Serde JSON deserialization examples?
- How can I test if a value lies within a Range?
- Why does returning `Self` in trait work, but returning `Option<Self>` requires `Sized`?
- What is the default integer type in Rust?
- How do global consts that are not copy or clone work in Rust?
- Why is immutability enforced in Rust unless otherwise specified with `mut`?
- Is there any way to create and open a file if it doesn't exist but fail otherwise?
- Understanding struct-field mutation
- When installing Rust toolchain in Docker, Bash `source` command doesn't work
- What is the "standard" way to concatenate strings?
- How to check if string only contains set of characters in Rust?
- Is there a builtin identity function in Rust?
- How can I change fields of elements in vectors in Rust?
- Creating a vector with non-constant length
- How do I convert a char to a String?
- How to use Rust's Peekable?
- What is #[warn(unstable)] about in Rust?
- Destruction order involving temporaries in Rust
- Why doesn't the Godbolt compiler explorer show any output for my function when compiled in release mode?
- How to concatenate a literal string with a const string?
- Is there a way to hide a macro pattern from docs?
- Where are Rust's boolean and other primitive types implemented?
- How to implement bitwise operations on a bitflags enum?
- How to access the element at variable index of a tuple?
- Why does asserting on the result of Deref::deref fail with a type mismatch?
- How can I ignore extra tuple items when deserializing with Serde? ("trailing characters" error)
- Why does `cargo new` create a binary instead of a library?
- How do I return a vector element from a Rust function?
- Checking equality of custom structs
- How to specify the underlying type of an enum in Rust?
- Is it possible for different instances of a generic function to have different static variables?
- Whats the idiomatic way to reference BufReader/BufWriter when passing it between functions?
- Is there a way to fold with index in Rust?
- How to print a u8 slice as text if I don't care about the particular encoding?
- Mutable structs in a vector
- Can I create private enum constructors?
- How do I test crates with #![no_std]?
- Is `iter().map().sum()` as fast as `iter().fold()`?
- Traits in algebraic data types
- Why do generic lifetimes not conform to the smaller lifetime of a nested scope?
- Read reference from Option<&mut T> multiple times
- How can I conditionally execute a module-level doctest based on a feature flag?
- Find a string starting from given index
- How to find in documentation that to_string is available for &str?
- How do I free a *char allocated via FFI in Rust?
- What's the easiest way to read several ints from stdin if it's ok to fail?
- Why use an immutable reference to i32
- Json Serialization feature of chrono crate
- How to create a non consuming iterator from a Vector
- Why does Clippy suggests passing an Arc as a reference?
- How to tell the borrow checker that a cleared Vec contains no borrows?
- How can I input an integer seed for producing random numbers using the rand crate in Rust?
- Idiomatic way to use a computed value as a pattern in match
- Referring to matched value in Rust
- How to convert a boxed array into a Vec in Rust
- Split string only once in Rust
- How to iterate over every second number
- In Rust, is Option compiled to a runtime check or an instruction jump?
- How do I extract two mutable elements from a Vec in rust
- Rust Json serialization overlapping responsibilities
- Confusing unreachable pattern error
- Update field in struct-like enum variant
- How can I create an iterator of &T from either a &Vec<T> or Vec<&T>?
- How do I "toggle" through enum variants?
- Is it possible to create a type alias that has trait bounds on a generic type for a function?
- How do I initialize this array of arrays within a struct?
- What is the evaluation order of tuples in Rust?
- Why does this Rust program ignore immutability
- Using str and String interchangably
- "error: trait bounds are not allowed in structure definitions" when attempting to use polymorphism
- Is it possible to have a recursive function computed at compile-time in Rust?
- Can I automatically return Ok(()) or None from a function?
- How to combine reading a file line by line and iterating over each character in each line?
- How to safely cast integers?
- How to swap two characters in a string?
- Why do I get a `trait bound `[T]: std::marker::Sized` is not satisfied when I try and implement Ord and Eq manually on unsized types?
- How do I deal with wrapper type invariance in Rust?
- What is the difference between Vec<struct> and &[struct]?
- Why are iterators not copyable?
- How can I get the compiler to warn me of unused code that is marked pub?
- Is there any way to work around an unused type parameter?
- What does "borrowed data cannot be stored outside of its closure" mean?
- How to infer the return type of a function?
- How do I send a file included with include_bytes! as an Iron response?
- How could rust multiply &i32 with i32?
- How do I specify a lifetime that is dependent on the borrowed binding of a closure in a separate type?
- Deriving Serde's Serialize or Deserialize forces generic type to be serialisable although it does not need to be
- How to clear the command line?
- How do I cast a literal value to a trait object?
- This slightly modified Rc<()> is Sync, but not Send, right?
- What is an idiomatic way to create a zero-sized struct that can't be instantiated outside its crate?
- How to wrap a call to a FFI function that uses VarArgs in Rust?
- Type annotation in a pattern match in Rust?
- Should I end an expression with ; inside a loop?
- Why does the derived clone() method return a reference?
- How can I define a Rust function type which returns its own type?
- Get the current thread id and process id as integers?
- How do I pass a Trait as application data to Actix Web?
- Passing Vec<String> as IntoIterator<&'a str>
- Documenting a function created with a macro in Rust
- Align struct to cache lines in Rust
- Unwrap enum when all variants are of the same type
- How to pass -L linker flag to rustc for cargo based project?
- Rust "expected type" error prints mismatched types that are exactly the same
- Rocket requires a minimum version of Rust nightly, but a higher stable version is already installed
- Does Rust expose call stack depth?
- How can I test a future that is bound to a tokio TcpStream?
- Proper way to use rust structs from other mods
- Is there a way to obtain elided lifetime parameters from the Rust compiler?
- Is there a way to force print!/println! to use a Windows new line (CR LF)
- Why can the Rust compiler break borrowing rules when using Rust 1.31?
- How to get the linker to produce a map file using Cargo
- How do I make a TLS connection using the rustls library?
- How can I take input from either stdin or a file if I cannot seek stdin?
- In Rust, what is the best way to print something between each value in a container?
- How can I improve the performance of element-wise multiplication in Rust?
- alternative to using 'await' with lazy_static! macro in rust?
- Subtraction not implemented for f32?
- Setting a non-default rounding mode with Rust inline asm isn't respected by the LLVM optimizer?
- How to call serde_json::to_writer twice with the same mutable borrow?
- How to do things equal to nested `impl Trait`?
- How to implement trim for Vec<u8>?
- How to wrap a native library with init/exit semantics
- Wrong inferred lifetime due to associated type
- When to use Box<Vec<..>> or Vec<Box<..>>?
- Why do return expressions use semicolons when they're unnecessary?
- How do I read an Iron Request in both middleware and the handler?
- Why do we need Rc<T> when immutable references can do the job?
- Why does the index method require ownership?
- What's the idiomatic way to pass by mutable value?
- Cargo, workspace and temporary local dependency
- const fns are an unstable feature when using AtomicUsize::new
- Writing an iterator
- Why does my nom parser not consume the entire input, leaving the last piece unparsed?
- Confused by move semantics of struct fields inside a Box
- How is a destructor call `fn drop(&mut self)` call inserted when the owning variable is immutable?
- What happens to an async task when it is aborted?
- How do I use the Option::ok_or() method correctly?
- How do I select different std::cmp::Ord (or other trait) implementations for a given type?
- Accessing tuple from within an enum
- Can't get image::load_from_memory() to work when compiled to WebAssembly
- Generic types, ownership, and persistent data structures
- Passing two objects, where one holds a reference to another, into a thread
- impl Stream cannot be unpinned
- How to build Rust examples without running
- How can I silently catch panics in QuickCheck tests?
- How to use (unsafe) aliasing?
- Use of undeclared type or module core::fmt::Display
- Why can immutable variables be passed as arguments to functions that require mutable arguments?
- How to asynchronously read a file?
- Why do I need to collect into a vector when using `flat_map`?
- Why can I not borrow a boxed vector content as mutable?
- Is it possible to create a Stream from a File rather than loading the file contents into memory?
- Why is ?Sized a bound for certain RefCell functions, but not all?
- Is it possible to specify `panic = "abort"` for a specific target?
- How to pass a boxed trait object by value in Rust?
- How can I implement Borrow for a generic container in the case of the use of associated types?
- Rust generics/traits: "expected 'Foo<B>', found 'Foo<Foo2>'"
- Why does Serde not support Rc and Arc types by default?
- What is the difference between "context" and "with_context" in anyhow?
- Why does calling a method on a mutable reference involve "borrowing"?
- How to allow multiple implementations of a trait on various types of IntoIterator items?
- How can slices be split using another slice as a delimiter?
- Is transmuting bytes to a float safe or might it produce undefined behavior?
- Is passing an iterator to a function as an argument an anti-pattern?
- Replacing Path parts in Rust
- How to define a function-local type alias of the function's type parameters (or their associated types)?
- How do I fetch binary columns from MySQL in Rust?
- What is RUST_BACKTRACE supposed to tell me?
- Can a trait guarantee certain type properties such as a vector is non-empty?
- How to use a compiled C .so file in rust
- Returning a mutable reference that is behind an immutable reference, passed to the function
- What is the difference between TryFrom<&[T]> and TryFrom<Vec<T>>?
- How can I store an identifier (`proc_macro::Ident`) as a constant to avoid repeating it?
- Writing to multiple bytes efficiently in Rust
- Disambiguate associated type in struct
- How do I store a variable of type `impl Trait` in a struct?
- How do I map a C struct with padding over 32 bytes using serde and bincode?
- Expected &-ptr, found tuple while iterating over an array of tuples
- How to avoid multiple mutable borrows of a vector when inserting a value if the vector is empty?
- Owned pointer in graph structure
- Lifetime parameters for an enum within a struct
- An iterator adaptor implementing an SQL-like RIGHT OUTER JOIN using a HashMap
- Why does a HTTP GET request with vanilla Rust get no answer?
- Hexadecimal formatting with padded zeroes
- Restricting object lifetimes in Rust
- Why does Rust not permit type inference for local constants?
- Why implementations for rust debug trait uses Formatter<'_> type elision
- Using Trait types with rust-portaudio in non-blocking mode
- What does `Vec<T>` mean?
- Getting value from a collection without using the Clone trait
- What happens when I call std::mem::drop with a reference instead of an owned value?
- with large fixed size array in Rust 0.13
- What's the right way to make a stack (or other dynamically resizable vector-like thing) in Rust?
- Define a trait with a function that returns an associated type with the same lifetime as one parameter
- Manipulate canvas bytes directly from WebAssembly
- Semantics of lifetime parameters
- Is there any way to implement the Send trait for ZipFile?
- Pattern matching on slices
- What's the right way to create OsStr(ing) from a FFI-returned slice?
- What's the alternative to u32::BITS in a const?
- How do I add tasks to a Tokio event loop that is running on another thread?
- Cannot call CryptDecrypt from the WinApi crate because it could not find the module
- Should .cloned() be before or after .filter()
- Is Rust's syntactical grammar context-free or context-sensitive?
- In Rust, how can I fix the error "the trait `core::kinds::Sized` is not implemented for the type `Object+'a`"
- How do I efficiently read in a single line of user input from the console?
- What does "expected struct Foo, found a different struct Foo" mean?
- Rust: "cannot move out of `self` because it is borrowed" error
- Idiomatically access an element of a vector mutably and immutably
- Is there a trait for scalar-castable types?
- How to read/write integer values from bytes without old_io?
- Use module from parent directory in rust
- Concatenate string literal with another string
- Why is implementing an external trait using my type as a parameter for an external type legal?
- How to (de)serialize a strongly typed JSON dictionary in Serde?
- Why is Rust's usize to u128 conversion considered failable?
- How to check for EOF in read_line in Rust 1.12?
- If I make a struct and put it in a vector, does it reside on the heap or the stack?
- How does Rust store types at runtime?
- Is it valid to use ptr::NonNull in FFI?
- Is it possible to call a Rust function taking a Vec from C?
- Why do I need a double ampersand when getting values from a HashMap?
- How to initialize a static array with most values the same but some values different?
- Path statement leaves a value in moved-from state?
- Does cloning an iterator copy the entire underlying vector?
- How can I convert the block number into the Integer type in substrate module?
- Rust linker seeks a LIB, rather than a DLL
- Vectors borrowing and ownership
- Using async/await with old `Future<Item = X, Error = Y>` types
- Concatenate a vector of vectors of strings
- Unable to infer enough type information about _; type annotations or generic parameter binding required
- How to conditionally change a small part of a Rust macro?
- Deserialize TOML string to enum using config-rs
- Mutable Struct Fields
- Is this the most natural way to read structs from a binary file?
- Silent error while accessing Redis
- Is it possible to create a macro that implements Ord by delegating to a struct member?
- Why do I not get a backtrace when my program has a segmentation fault even though RUST_BACKTRACE=1 is set?
- Rust: Use of Mutable References in Recursive Function
- Conditionally implement a Rust trait only if a type constraint is satisfied
- How to return JSON as a response in Rust Rocket with auto field deserialising?
- How can I use internal mutability with generic type in Rust?
- How do I convert an iterator into a stream on success or an empty stream on failure?
- How does tokio::net::TcpStream implement tokio::prelude::Stream?
- Why is this not a dangling reference?
- Why I can use sort_by_key with a Vec?
- How do you format a float to the first significant decimal and with specified precision
- Converting strings to lowercase
- Cannot assign to `self.x` because it is borrowed
- Implementing a generic incrementable trait in Rust
- Borrow errors for multiple borrows
- How can I iteratively call Sha256::digest, passing the previous result to each subsequent call?
- How to capture self consuming variable in a struct?
- Can trait objects of type IntoIterator be boxed and held inside of a structure?
- Possible to declare functions that will warn on unused results in Rust?
- How do I hold a collection of one struct in another where lifetimes are not predictable?
- Drop a immutable borrow to make a mutable borrow
- Is there a safe way to temporarily retrieve an owned value from a mutable reference in Rust?
- Destructure a vector into variables and give away ownership?
- Unsatisfied trait bound involving associated type
- Exposing only a concrete variant of a generic private type in a Rust library
- Why does Nil increase one enum size but not another? How is memory allocated for Rust enums?
- Why does auto borrowing not occur in Rust if I implement `TryFrom` for a reference type?
- Can I use const with overloading operators in Rust?
- How can I run a set of functions on a recurring interval without running the same function at the same time using only the standard Rust library?
- Returning from inside for loop causes type mismatch
- Closure in the return type for a Rust function
- Can match on Result here be replaced with map_err and "?"
- How to use the chained builder pattern in a loop without creating a compiler error?
- Writing a generic swap function
- Use Trait as Vec Type
- Function references: expected bound lifetime parameter , found concrete lifetime [E0271]
- How to force a union to behave as if there is only one type?
- Method call on clap::App moving ownership more than once
- How do I move String values from an array to a tuple without copying?
- Can you restrict a generic to T where T is a trait implemented by Self?
- How do I copy/clone a struct that derives neither?
- Figuring out return type of closure
- Change selector in match when selector is a mutable reference
- Can casting in safe Rust ever lead to a runtime error?
- What is the smallest feature set to enable polling a future with Tokio?
- Box<T> to &T in Rust
- Redirect panics to a specified buffer
- Deserializing JSON array containing different types of object
- Is there a way to access a structs fields as an array?
- Filtering files or directories discovered with fs::read_dir()
- How do I get a *mut c_char from a Str?