mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Simplify match in text_query::is_func
This commit is contained in:
parent
b042663807
commit
da9313f6fe
1 changed files with 3 additions and 20 deletions
|
@ -430,26 +430,9 @@ pub type Iter<'a> = Peekable<TokenIterator<'a>>;
|
|||
|
||||
fn is_func(name: &str) -> bool {
|
||||
match name {
|
||||
"sqrt" => true,
|
||||
"exp" => true,
|
||||
"ln" => true,
|
||||
"log" => true,
|
||||
"log2" => true,
|
||||
"log10" => true,
|
||||
"hypot" => true,
|
||||
"sin" => true,
|
||||
"cos" => true,
|
||||
"tan" => true,
|
||||
"asin" => true,
|
||||
"acos" => true,
|
||||
"atan" => true,
|
||||
"atan2" => true,
|
||||
"sinh" => true,
|
||||
"cosh" => true,
|
||||
"tanh" => true,
|
||||
"asinh" => true,
|
||||
"acosh" => true,
|
||||
"atanh" => true,
|
||||
"sqrt" | "exp" | "ln" | "log" | "log2" | "log10" | "hypot" | "sin" |
|
||||
"cos" | "tan" | "asin" | "acos" | "atan" | "atan2" | "sinh" | "cosh" |
|
||||
"tanh" | "asinh" | "acosh" | "atanh" => true,
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue