pub struct Girl {
pub gender: String,
pub sexuality: String,
pub contains_boy: bool,
pub name: u32,
pub foot_name: Option<String>,
}
Expand description
Holds a girl.
Fields§
§gender: String
§sexuality: String
§contains_boy: bool
§name: u32
§foot_name: Option<String>
Implementations§
Source§impl Girl
impl Girl
pub fn new_girl( gender: String, sexuality: String, contains_boy: bool, name: u32, ) -> Self
pub fn get_gender(&self) -> &String
pub fn get_sexuality(&self) -> &String
pub fn get_contains_boy(&self) -> bool
pub fn get_name(&self) -> u32
Sourcepub fn gender_initial(&self) -> &str
pub fn gender_initial(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Girl
impl RefUnwindSafe for Girl
impl Send for Girl
impl Sync for Girl
impl Unpin for Girl
impl UnwindSafe for Girl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more