pub struct EntryInformation {
    pub name: String,
    pub age: i32,
    pub height: i32,
}Expand description
Represents an individual with a Name, Age, and Height.
Fields§
§name: StringName of this individual.
age: i32Age of this individual, in years.
height: i32Height of this individual, in inches.
Implementations§
source§impl EntryInformation
 
impl EntryInformation
sourcepub fn new(name: &str, age: i32, height: i32) -> EntryInformation
 
pub fn new(name: &str, age: i32, height: i32) -> EntryInformation
Constructor
Parameters
- 
name
Name of an individual
 - 
age
Age of an individual (in years)
 - 
height
Height of an individual (in inches)
 
Returns
Returns a new instance of the EntryInformation struct.
Trait Implementations§
source§impl Clone for EntryInformation
 
impl Clone for EntryInformation
source§fn clone(&self) -> EntryInformation
 
fn clone(&self) -> EntryInformation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read more