Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

Struct with a mutable reference to another instance of the same type

rust borrow-checker

One function call creates double borrow error while other does not

rust borrow-checker

How can I make Rust, with the Rodio crate, load multiple sources in a Vec, so I can play them later as needed without having to load them every time?

How to restructure struct such that 'Cannot borrow `x` as mutable more than once at a time' does not occur

How to use the Rust type system to prevent output to stdout?

How to resolve "indicate anonymous lifetime <'_>" error?

function returns immutable references but borrow checker thinks otherwise

rust borrow-checker

How can I enforce lifetimes for a struct that contains a raw pointer?

Rust: why does borrowing a reference inside struct borrow the whole struct?

How to generate iterator with sliding window pairs?

Why can't I borrow as mutable more than once at a time in this example? [duplicate]

Borrowed value does not live long enough, unsure why it's still borrowed

rust borrow-checker

How to design a mutable collection of Mutex?

Immutable object changing to mutable depending on function signature

Rust: can I have a fixed size slice by borrowing the whole fixed size array in a smaller scope in a simple way

Understanding non lexical lifetimes when calling functions that return reference

What's the most idiomatic Rust way to modify an optional element of a Vec conditionally?

rust idioms borrow-checker