Sign in
rust
/
rust-by-example
/
refs/heads/macros
/
.
/
examples
/
borrow
/
ref
/
input.md
blob: 7eca8f7256e9f64f7412319b4d2c1c13ff10d1e1 [
file
] [
log
] [
blame
] [
view
] [
edit
]
When
doing pattern matching
or
destructuring via the
`let`
binding
,
the
`ref`
keyword can be used to take references to the fields of a
struct
/
tuple
.
{
ref
.
play
}