#[repr(i32)]pub enum HairStyle {
Unkempt = -1,
NeatlyCombed = 0,
Braided = 1,
DoubleBraid = 2,
PonyTails = 3,
CleanShaven = 4,
}Variants§
Implementations§
Source§impl HairStyle
impl HairStyle
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for HairStyle
impl Ord for HairStyle
Source§impl PartialOrd for HairStyle
impl PartialOrd for HairStyle
impl Copy for HairStyle
impl Eq for HairStyle
impl StructuralPartialEq for HairStyle
Auto Trait Implementations§
impl Freeze for HairStyle
impl RefUnwindSafe for HairStyle
impl Send for HairStyle
impl Sync for HairStyle
impl Unpin for HairStyle
impl UnsafeUnpin for HairStyle
impl UnwindSafe for HairStyle
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