Skip to content

HanzalaEjaz/assignment_Rust2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assignment_Rust2

Write a program in Rust, such that make an instance of a struct that store fields for a gun, fields are name: String, type: String, energy: u64, num_of_rounds_per_mag: i32, total_rounds: i32 . and also implement the method for firing of gun and reloading.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages