Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

How can I change uniforms during a render pass in wgpu?

Nested loops over an iterator inRust

Why does entry need the ownership of key?

Call field's function and pass &self in Rust

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