mod constants {
pub const OTTOMAN_SIYAQ_NUMBER_ONE: char = '𞴁';
pub const OTTOMAN_SIYAQ_NUMBER_TWO: char = '𞴂';
pub const OTTOMAN_SIYAQ_NUMBER_THREE: char = '𞴃';
pub const OTTOMAN_SIYAQ_NUMBER_FOUR: char = '𞴄';
pub const OTTOMAN_SIYAQ_NUMBER_FIVE: char = '𞴅';
pub const OTTOMAN_SIYAQ_NUMBER_SIX: char = '𞴆';
pub const OTTOMAN_SIYAQ_NUMBER_SEVEN: char = '𞴇';
pub const OTTOMAN_SIYAQ_NUMBER_EIGHT: char = '𞴈';
pub const OTTOMAN_SIYAQ_NUMBER_NINE: char = '𞴉';
pub const OTTOMAN_SIYAQ_NUMBER_TEN: char = '𞴊';
pub const OTTOMAN_SIYAQ_NUMBER_TWENTY: char = '𞴋';
pub const OTTOMAN_SIYAQ_NUMBER_THIRTY: char = '𞴌';
pub const OTTOMAN_SIYAQ_NUMBER_FORTY: char = '𞴍';
pub const OTTOMAN_SIYAQ_NUMBER_FIFTY: char = '𞴎';
pub const OTTOMAN_SIYAQ_NUMBER_SIXTY: char = '𞴏';
pub const OTTOMAN_SIYAQ_NUMBER_SEVENTY: char = '𞴐';
pub const OTTOMAN_SIYAQ_NUMBER_EIGHTY: char = '𞴑';
pub const OTTOMAN_SIYAQ_NUMBER_NINETY: char = '𞴒';
pub const OTTOMAN_SIYAQ_NUMBER_ONE_HUNDRED: char = '𞴓';
pub const OTTOMAN_SIYAQ_NUMBER_TWO_HUNDRED: char = '𞴔';
pub const OTTOMAN_SIYAQ_NUMBER_THREE_HUNDRED: char = '𞴕';
pub const OTTOMAN_SIYAQ_NUMBER_FOUR_HUNDRED: char = '𞴖';
pub const OTTOMAN_SIYAQ_NUMBER_FIVE_HUNDRED: char = '𞴗';
pub const OTTOMAN_SIYAQ_NUMBER_SIX_HUNDRED: char = '𞴘';
pub const OTTOMAN_SIYAQ_NUMBER_SEVEN_HUNDRED: char = '𞴙';
pub const OTTOMAN_SIYAQ_NUMBER_EIGHT_HUNDRED: char = '𞴚';
pub const OTTOMAN_SIYAQ_NUMBER_NINE_HUNDRED: char = '𞴛';
pub const OTTOMAN_SIYAQ_NUMBER_ONE_THOUSAND: char = '𞴜';
pub const OTTOMAN_SIYAQ_NUMBER_TWO_THOUSAND: char = '𞴝';
pub const OTTOMAN_SIYAQ_NUMBER_THREE_THOUSAND: char = '𞴞';
pub const OTTOMAN_SIYAQ_NUMBER_FOUR_THOUSAND: char = '𞴟';
pub const OTTOMAN_SIYAQ_NUMBER_FIVE_THOUSAND: char = '𞴠';
pub const OTTOMAN_SIYAQ_NUMBER_SIX_THOUSAND: char = '𞴡';
pub const OTTOMAN_SIYAQ_NUMBER_SEVEN_THOUSAND: char = '𞴢';
pub const OTTOMAN_SIYAQ_NUMBER_EIGHT_THOUSAND: char = '𞴣';
pub const OTTOMAN_SIYAQ_NUMBER_NINE_THOUSAND: char = '𞴤';
pub const OTTOMAN_SIYAQ_NUMBER_TEN_THOUSAND: char = '𞴥';
pub const OTTOMAN_SIYAQ_NUMBER_TWENTY_THOUSAND: char = '𞴦';
pub const OTTOMAN_SIYAQ_NUMBER_THIRTY_THOUSAND: char = '𞴧';
pub const OTTOMAN_SIYAQ_NUMBER_FORTY_THOUSAND: char = '𞴨';
pub const OTTOMAN_SIYAQ_NUMBER_FIFTY_THOUSAND: char = '𞴩';
pub const OTTOMAN_SIYAQ_NUMBER_SIXTY_THOUSAND: char = '𞴪';
pub const OTTOMAN_SIYAQ_NUMBER_SEVENTY_THOUSAND: char = '𞴫';
pub const OTTOMAN_SIYAQ_NUMBER_EIGHTY_THOUSAND: char = '𞴬';
pub const OTTOMAN_SIYAQ_NUMBER_NINETY_THOUSAND: char = '𞴭';
pub const OTTOMAN_SIYAQ_MARRATAN: char = '𞴮';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO: char = '𞴯';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_THREE: char = '𞴰';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR: char = '𞴱';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FIVE: char = '𞴲';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX: char = '𞴳';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SEVEN: char = '𞴴';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_EIGHT: char = '𞴵';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_NINE: char = '𞴶';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN: char = '𞴷';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR_HUNDRED: char = '𞴸';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX_HUNDRED: char = '𞴹';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO_THOUSAND: char = '𞴺';
pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN_THOUSAND: char = '𞴻';
pub const OTTOMAN_SIYAQ_FRACTION_ONE_HALF: char = '𞴼';
pub const OTTOMAN_SIYAQ_FRACTION_ONE_SIXTH: char = '𞴽';
}
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
pub enum OttomanSiyaqNumbers {
OttomanSiyaqNumberOne,
OttomanSiyaqNumberTwo,
OttomanSiyaqNumberThree,
OttomanSiyaqNumberFour,
OttomanSiyaqNumberFive,
OttomanSiyaqNumberSix,
OttomanSiyaqNumberSeven,
OttomanSiyaqNumberEight,
OttomanSiyaqNumberNine,
OttomanSiyaqNumberTen,
OttomanSiyaqNumberTwenty,
OttomanSiyaqNumberThirty,
OttomanSiyaqNumberForty,
OttomanSiyaqNumberFifty,
OttomanSiyaqNumberSixty,
OttomanSiyaqNumberSeventy,
OttomanSiyaqNumberEighty,
OttomanSiyaqNumberNinety,
OttomanSiyaqNumberOneHundred,
OttomanSiyaqNumberTwoHundred,
OttomanSiyaqNumberThreeHundred,
OttomanSiyaqNumberFourHundred,
OttomanSiyaqNumberFiveHundred,
OttomanSiyaqNumberSixHundred,
OttomanSiyaqNumberSevenHundred,
OttomanSiyaqNumberEightHundred,
OttomanSiyaqNumberNineHundred,
OttomanSiyaqNumberOneThousand,
OttomanSiyaqNumberTwoThousand,
OttomanSiyaqNumberThreeThousand,
OttomanSiyaqNumberFourThousand,
OttomanSiyaqNumberFiveThousand,
OttomanSiyaqNumberSixThousand,
OttomanSiyaqNumberSevenThousand,
OttomanSiyaqNumberEightThousand,
OttomanSiyaqNumberNineThousand,
OttomanSiyaqNumberTenThousand,
OttomanSiyaqNumberTwentyThousand,
OttomanSiyaqNumberThirtyThousand,
OttomanSiyaqNumberFortyThousand,
OttomanSiyaqNumberFiftyThousand,
OttomanSiyaqNumberSixtyThousand,
OttomanSiyaqNumberSeventyThousand,
OttomanSiyaqNumberEightyThousand,
OttomanSiyaqNumberNinetyThousand,
OttomanSiyaqMarratan,
OttomanSiyaqAlternateNumberTwo,
OttomanSiyaqAlternateNumberThree,
OttomanSiyaqAlternateNumberFour,
OttomanSiyaqAlternateNumberFive,
OttomanSiyaqAlternateNumberSix,
OttomanSiyaqAlternateNumberSeven,
OttomanSiyaqAlternateNumberEight,
OttomanSiyaqAlternateNumberNine,
OttomanSiyaqAlternateNumberTen,
OttomanSiyaqAlternateNumberFourHundred,
OttomanSiyaqAlternateNumberSixHundred,
OttomanSiyaqAlternateNumberTwoThousand,
OttomanSiyaqAlternateNumberTenThousand,
OttomanSiyaqFractionOneHalf,
OttomanSiyaqFractionOneSixth,
}
impl Into<char> for OttomanSiyaqNumbers {
fn into(self) -> char {
use constants::*;
match self {
OttomanSiyaqNumbers::OttomanSiyaqNumberOne => OTTOMAN_SIYAQ_NUMBER_ONE,
OttomanSiyaqNumbers::OttomanSiyaqNumberTwo => OTTOMAN_SIYAQ_NUMBER_TWO,
OttomanSiyaqNumbers::OttomanSiyaqNumberThree => OTTOMAN_SIYAQ_NUMBER_THREE,
OttomanSiyaqNumbers::OttomanSiyaqNumberFour => OTTOMAN_SIYAQ_NUMBER_FOUR,
OttomanSiyaqNumbers::OttomanSiyaqNumberFive => OTTOMAN_SIYAQ_NUMBER_FIVE,
OttomanSiyaqNumbers::OttomanSiyaqNumberSix => OTTOMAN_SIYAQ_NUMBER_SIX,
OttomanSiyaqNumbers::OttomanSiyaqNumberSeven => OTTOMAN_SIYAQ_NUMBER_SEVEN,
OttomanSiyaqNumbers::OttomanSiyaqNumberEight => OTTOMAN_SIYAQ_NUMBER_EIGHT,
OttomanSiyaqNumbers::OttomanSiyaqNumberNine => OTTOMAN_SIYAQ_NUMBER_NINE,
OttomanSiyaqNumbers::OttomanSiyaqNumberTen => OTTOMAN_SIYAQ_NUMBER_TEN,
OttomanSiyaqNumbers::OttomanSiyaqNumberTwenty => OTTOMAN_SIYAQ_NUMBER_TWENTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberThirty => OTTOMAN_SIYAQ_NUMBER_THIRTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberForty => OTTOMAN_SIYAQ_NUMBER_FORTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberFifty => OTTOMAN_SIYAQ_NUMBER_FIFTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberSixty => OTTOMAN_SIYAQ_NUMBER_SIXTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberSeventy => OTTOMAN_SIYAQ_NUMBER_SEVENTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberEighty => OTTOMAN_SIYAQ_NUMBER_EIGHTY,
OttomanSiyaqNumbers::OttomanSiyaqNumberNinety => OTTOMAN_SIYAQ_NUMBER_NINETY,
OttomanSiyaqNumbers::OttomanSiyaqNumberOneHundred => OTTOMAN_SIYAQ_NUMBER_ONE_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberTwoHundred => OTTOMAN_SIYAQ_NUMBER_TWO_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberThreeHundred => OTTOMAN_SIYAQ_NUMBER_THREE_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberFourHundred => OTTOMAN_SIYAQ_NUMBER_FOUR_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberFiveHundred => OTTOMAN_SIYAQ_NUMBER_FIVE_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberSixHundred => OTTOMAN_SIYAQ_NUMBER_SIX_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberSevenHundred => OTTOMAN_SIYAQ_NUMBER_SEVEN_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberEightHundred => OTTOMAN_SIYAQ_NUMBER_EIGHT_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberNineHundred => OTTOMAN_SIYAQ_NUMBER_NINE_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqNumberOneThousand => OTTOMAN_SIYAQ_NUMBER_ONE_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberTwoThousand => OTTOMAN_SIYAQ_NUMBER_TWO_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberThreeThousand => OTTOMAN_SIYAQ_NUMBER_THREE_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberFourThousand => OTTOMAN_SIYAQ_NUMBER_FOUR_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberFiveThousand => OTTOMAN_SIYAQ_NUMBER_FIVE_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberSixThousand => OTTOMAN_SIYAQ_NUMBER_SIX_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberSevenThousand => OTTOMAN_SIYAQ_NUMBER_SEVEN_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberEightThousand => OTTOMAN_SIYAQ_NUMBER_EIGHT_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberNineThousand => OTTOMAN_SIYAQ_NUMBER_NINE_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberTenThousand => OTTOMAN_SIYAQ_NUMBER_TEN_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberTwentyThousand => OTTOMAN_SIYAQ_NUMBER_TWENTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberThirtyThousand => OTTOMAN_SIYAQ_NUMBER_THIRTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberFortyThousand => OTTOMAN_SIYAQ_NUMBER_FORTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberFiftyThousand => OTTOMAN_SIYAQ_NUMBER_FIFTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberSixtyThousand => OTTOMAN_SIYAQ_NUMBER_SIXTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberSeventyThousand => OTTOMAN_SIYAQ_NUMBER_SEVENTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberEightyThousand => OTTOMAN_SIYAQ_NUMBER_EIGHTY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqNumberNinetyThousand => OTTOMAN_SIYAQ_NUMBER_NINETY_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqMarratan => OTTOMAN_SIYAQ_MARRATAN,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwo => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberThree => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_THREE,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFour => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFive => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FIVE,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSix => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSeven => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SEVEN,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberEight => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_EIGHT,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberNine => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_NINE,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTen => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFourHundred => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSixHundred => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX_HUNDRED,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwoThousand => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTenThousand => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN_THOUSAND,
OttomanSiyaqNumbers::OttomanSiyaqFractionOneHalf => OTTOMAN_SIYAQ_FRACTION_ONE_HALF,
OttomanSiyaqNumbers::OttomanSiyaqFractionOneSixth => OTTOMAN_SIYAQ_FRACTION_ONE_SIXTH,
}
}
}
impl std::convert::TryFrom<char> for OttomanSiyaqNumbers {
type Error = ();
fn try_from(c: char) -> Result<Self, Self::Error> {
use constants::*;
match c {
OTTOMAN_SIYAQ_NUMBER_ONE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberOne),
OTTOMAN_SIYAQ_NUMBER_TWO => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwo),
OTTOMAN_SIYAQ_NUMBER_THREE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThree),
OTTOMAN_SIYAQ_NUMBER_FOUR => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFour),
OTTOMAN_SIYAQ_NUMBER_FIVE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFive),
OTTOMAN_SIYAQ_NUMBER_SIX => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSix),
OTTOMAN_SIYAQ_NUMBER_SEVEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSeven),
OTTOMAN_SIYAQ_NUMBER_EIGHT => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEight),
OTTOMAN_SIYAQ_NUMBER_NINE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNine),
OTTOMAN_SIYAQ_NUMBER_TEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTen),
OTTOMAN_SIYAQ_NUMBER_TWENTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwenty),
OTTOMAN_SIYAQ_NUMBER_THIRTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThirty),
OTTOMAN_SIYAQ_NUMBER_FORTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberForty),
OTTOMAN_SIYAQ_NUMBER_FIFTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFifty),
OTTOMAN_SIYAQ_NUMBER_SIXTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixty),
OTTOMAN_SIYAQ_NUMBER_SEVENTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSeventy),
OTTOMAN_SIYAQ_NUMBER_EIGHTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEighty),
OTTOMAN_SIYAQ_NUMBER_NINETY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNinety),
OTTOMAN_SIYAQ_NUMBER_ONE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberOneHundred),
OTTOMAN_SIYAQ_NUMBER_TWO_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwoHundred),
OTTOMAN_SIYAQ_NUMBER_THREE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThreeHundred),
OTTOMAN_SIYAQ_NUMBER_FOUR_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFourHundred),
OTTOMAN_SIYAQ_NUMBER_FIVE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFiveHundred),
OTTOMAN_SIYAQ_NUMBER_SIX_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixHundred),
OTTOMAN_SIYAQ_NUMBER_SEVEN_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSevenHundred),
OTTOMAN_SIYAQ_NUMBER_EIGHT_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEightHundred),
OTTOMAN_SIYAQ_NUMBER_NINE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNineHundred),
OTTOMAN_SIYAQ_NUMBER_ONE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberOneThousand),
OTTOMAN_SIYAQ_NUMBER_TWO_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwoThousand),
OTTOMAN_SIYAQ_NUMBER_THREE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThreeThousand),
OTTOMAN_SIYAQ_NUMBER_FOUR_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFourThousand),
OTTOMAN_SIYAQ_NUMBER_FIVE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFiveThousand),
OTTOMAN_SIYAQ_NUMBER_SIX_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixThousand),
OTTOMAN_SIYAQ_NUMBER_SEVEN_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSevenThousand),
OTTOMAN_SIYAQ_NUMBER_EIGHT_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEightThousand),
OTTOMAN_SIYAQ_NUMBER_NINE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNineThousand),
OTTOMAN_SIYAQ_NUMBER_TEN_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTenThousand),
OTTOMAN_SIYAQ_NUMBER_TWENTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwentyThousand),
OTTOMAN_SIYAQ_NUMBER_THIRTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThirtyThousand),
OTTOMAN_SIYAQ_NUMBER_FORTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFortyThousand),
OTTOMAN_SIYAQ_NUMBER_FIFTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFiftyThousand),
OTTOMAN_SIYAQ_NUMBER_SIXTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixtyThousand),
OTTOMAN_SIYAQ_NUMBER_SEVENTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSeventyThousand),
OTTOMAN_SIYAQ_NUMBER_EIGHTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEightyThousand),
OTTOMAN_SIYAQ_NUMBER_NINETY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNinetyThousand),
OTTOMAN_SIYAQ_MARRATAN => Ok(OttomanSiyaqNumbers::OttomanSiyaqMarratan),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwo),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_THREE => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberThree),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFour),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FIVE => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFive),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSix),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SEVEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSeven),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_EIGHT => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberEight),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_NINE => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberNine),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTen),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFourHundred),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSixHundred),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwoThousand),
OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTenThousand),
OTTOMAN_SIYAQ_FRACTION_ONE_HALF => Ok(OttomanSiyaqNumbers::OttomanSiyaqFractionOneHalf),
OTTOMAN_SIYAQ_FRACTION_ONE_SIXTH => Ok(OttomanSiyaqNumbers::OttomanSiyaqFractionOneSixth),
_ => Err(()),
}
}
}
impl Into<u32> for OttomanSiyaqNumbers {
fn into(self) -> u32 {
let c: char = self.into();
let hex = c
.escape_unicode()
.to_string()
.replace("\\u{", "")
.replace("}", "");
u32::from_str_radix(&hex, 16).unwrap()
}
}
impl std::convert::TryFrom<u32> for OttomanSiyaqNumbers {
type Error = ();
fn try_from(u: u32) -> Result<Self, Self::Error> {
if let Ok(c) = char::try_from(u) {
Self::try_from(c)
} else {
Err(())
}
}
}
impl Iterator for OttomanSiyaqNumbers {
type Item = Self;
fn next(&mut self) -> Option<Self> {
let index: u32 = (*self).into();
use std::convert::TryFrom;
Self::try_from(index + 1).ok()
}
}
impl OttomanSiyaqNumbers {
pub fn new() -> Self {
OttomanSiyaqNumbers::OttomanSiyaqNumberOne
}
pub fn name(&self) -> &str {
match self {
OttomanSiyaqNumbers::OttomanSiyaqNumberOne => "ottoman siyaq number one",
OttomanSiyaqNumbers::OttomanSiyaqNumberTwo => "ottoman siyaq number two",
OttomanSiyaqNumbers::OttomanSiyaqNumberThree => "ottoman siyaq number three",
OttomanSiyaqNumbers::OttomanSiyaqNumberFour => "ottoman siyaq number four",
OttomanSiyaqNumbers::OttomanSiyaqNumberFive => "ottoman siyaq number five",
OttomanSiyaqNumbers::OttomanSiyaqNumberSix => "ottoman siyaq number six",
OttomanSiyaqNumbers::OttomanSiyaqNumberSeven => "ottoman siyaq number seven",
OttomanSiyaqNumbers::OttomanSiyaqNumberEight => "ottoman siyaq number eight",
OttomanSiyaqNumbers::OttomanSiyaqNumberNine => "ottoman siyaq number nine",
OttomanSiyaqNumbers::OttomanSiyaqNumberTen => "ottoman siyaq number ten",
OttomanSiyaqNumbers::OttomanSiyaqNumberTwenty => "ottoman siyaq number twenty",
OttomanSiyaqNumbers::OttomanSiyaqNumberThirty => "ottoman siyaq number thirty",
OttomanSiyaqNumbers::OttomanSiyaqNumberForty => "ottoman siyaq number forty",
OttomanSiyaqNumbers::OttomanSiyaqNumberFifty => "ottoman siyaq number fifty",
OttomanSiyaqNumbers::OttomanSiyaqNumberSixty => "ottoman siyaq number sixty",
OttomanSiyaqNumbers::OttomanSiyaqNumberSeventy => "ottoman siyaq number seventy",
OttomanSiyaqNumbers::OttomanSiyaqNumberEighty => "ottoman siyaq number eighty",
OttomanSiyaqNumbers::OttomanSiyaqNumberNinety => "ottoman siyaq number ninety",
OttomanSiyaqNumbers::OttomanSiyaqNumberOneHundred => "ottoman siyaq number one hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberTwoHundred => "ottoman siyaq number two hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberThreeHundred => "ottoman siyaq number three hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberFourHundred => "ottoman siyaq number four hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberFiveHundred => "ottoman siyaq number five hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberSixHundred => "ottoman siyaq number six hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberSevenHundred => "ottoman siyaq number seven hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberEightHundred => "ottoman siyaq number eight hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberNineHundred => "ottoman siyaq number nine hundred",
OttomanSiyaqNumbers::OttomanSiyaqNumberOneThousand => "ottoman siyaq number one thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberTwoThousand => "ottoman siyaq number two thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberThreeThousand => "ottoman siyaq number three thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberFourThousand => "ottoman siyaq number four thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberFiveThousand => "ottoman siyaq number five thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberSixThousand => "ottoman siyaq number six thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberSevenThousand => "ottoman siyaq number seven thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberEightThousand => "ottoman siyaq number eight thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberNineThousand => "ottoman siyaq number nine thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberTenThousand => "ottoman siyaq number ten thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberTwentyThousand => "ottoman siyaq number twenty thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberThirtyThousand => "ottoman siyaq number thirty thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberFortyThousand => "ottoman siyaq number forty thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberFiftyThousand => "ottoman siyaq number fifty thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberSixtyThousand => "ottoman siyaq number sixty thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberSeventyThousand => "ottoman siyaq number seventy thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberEightyThousand => "ottoman siyaq number eighty thousand",
OttomanSiyaqNumbers::OttomanSiyaqNumberNinetyThousand => "ottoman siyaq number ninety thousand",
OttomanSiyaqNumbers::OttomanSiyaqMarratan => "ottoman siyaq marratan",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwo => "ottoman siyaq alternate number two",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberThree => "ottoman siyaq alternate number three",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFour => "ottoman siyaq alternate number four",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFive => "ottoman siyaq alternate number five",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSix => "ottoman siyaq alternate number six",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSeven => "ottoman siyaq alternate number seven",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberEight => "ottoman siyaq alternate number eight",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberNine => "ottoman siyaq alternate number nine",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTen => "ottoman siyaq alternate number ten",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFourHundred => "ottoman siyaq alternate number four hundred",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSixHundred => "ottoman siyaq alternate number six hundred",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwoThousand => "ottoman siyaq alternate number two thousand",
OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTenThousand => "ottoman siyaq alternate number ten thousand",
OttomanSiyaqNumbers::OttomanSiyaqFractionOneHalf => "ottoman siyaq fraction one half",
OttomanSiyaqNumbers::OttomanSiyaqFractionOneSixth => "ottoman siyaq fraction one sixth",
}
}
}