Sign in
rust
/
rust-by-example
/
refs/heads/macros
/
.
/
examples
/
borrow
/
mut
/
input.md
blob: c3370d6832f070acea3492f4f1731fefab20d554 [
file
] [
log
] [
blame
] [
view
] [
edit
]
`&T`
borrows the data via an immutable reference
,
and
the borrower can read the
data but
not
modify it
.
Mutable
data can be mutably borrowed via a
mutable
reference
`&mut T`
,
giving read
/
write access to the borrower
.
{
mut
.
play
}