Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rust

How to safely reinterpret Vec<f64> as Vec<num_complex::Complex<f64>> with half the size?

rust unsafe

How to match with vector element in Rust?

rust match

What is the equivalent of Java's transient in Serde?

serialization rust serde

Idiomatic way to count occurrences in a collection of Options

rust idioms

Primitive types in rust enums

rust

Why does Box<trait> have a different size than Box<struct>?

polymorphism rust

Why does a slice starting at the length of a string not panic?

syntax rust

How can I get the T from an Option<T> when using syn?

Why does the order of borrowing matter in rust?

rust

Why don't newtypes use the traits from the inner type?

rust newtype

Why are tuples not destructured when iterating over an array of tuples?

rust

How to provide a type-annotation for `AsRef`?

rust

What is the proper way to create a new generic struct?

generics struct rust

Can I cast between two traits?

rust traits

How do I duplicate a &[u8] slice?

rust borrowing

Mutating one field while iterating over another immutable field

rust

How can I truncate a string to have at most N characters?

string unicode rust truncate

Confusing error in Rust with trait object lifetime

rust lifetime trait-objects

Why is it not possible to concatenate two Strings in Rust without taking a reference to one of them?

rust

function is marked #[no_mangle], but not exported

rust