At the moment, at least the Request.form() API borrows Request as mutable. Does it need to? Because it limits the other things one can do with Request as long as the mutable borrow is live. Many std APIs provide getter() and getter_mut() to avoid this kind of a problem.
At the moment, at least the
Request.form()
API borrowsRequest
as mutable. Does it need to? Because it limits the other things one can do withRequest
as long as the mutable borrow is live. Manystd
APIs providegetter()
andgetter_mut()
to avoid this kind of a problem.