This website requires JavaScript.
Explore
Help
Sign In
rust
/
book
mirror of
https://github.com/rust-lang/book
Watch
1
Star
0
Fork
You've already forked book
0
Code
Issues
Releases
Wiki
Activity
eb60fedc9c
book
/
listings
/
ch13-functional-features
/
listing-13-20
/
src
/
lib.rs
10 lines
114 B
Rust
Raw
Blame
History
struct
Counter
{
count
:
u32
,
}
impl
Counter
{
fn
new
(
)
->
Counter
{
Counter
{
count
:
0
}
}
}
Reference in New Issue
View Git Blame
Copy Permalink