pub enum SizeType {
Centimeters,
Inches,
}Variants§
Trait Implementations§
source§impl FromString for SizeType
impl FromString for SizeType
The FromString trait implementation for SizeType returns a SizeType variant based on the string provided.
source§fn from_string(size_type: &str) -> SizeType
fn from_string(size_type: &str) -> SizeType
Function to create an instance of the type implementing this trait from a string.
source§impl GetVariants for SizeType
impl GetVariants for SizeType
source§fn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
source§impl PartialEq<SizeType> for SizeType
impl PartialEq<SizeType> for SizeType
impl Copy for SizeType
impl StructuralPartialEq for SizeType
Auto Trait Implementations§
impl RefUnwindSafe for SizeType
impl Send for SizeType
impl Sync for SizeType
impl Unpin for SizeType
impl UnwindSafe for SizeType
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