This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Gender { | |
Agender, | |
} | |
struct Details { | |
name: String, | |
description: String, | |
sentence: String, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
enum IsGender { | |
Yes, | |
No, | |
} | |
fn is_gender(is_gender: IsGender) -> String { | |
match is_gender { | |
IsGender::Yes => String::from("Status: Is A Gender"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Triangle { | |
base: f32, | |
height: f32 | |
} | |
trait Area { | |
fn triangle(&self) -> f32; | |
} | |
impl Area for Triangle { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.content1{ | |
} | |
.content1{ | |
} | |
.content1{ | |