INNER CODE UNIT · Rust

is_numeric_field

jhspetersson/fselect · src/field/mod.rs:92

            pub fn is_numeric_field(&self) -> bool {
                match self {
                    $(
                        $(#[$variant_attrs])*
                        $enum_name::$variant => {
                            stringify!($($data_type)?) .replace("\"", "") == "numeric"
                        }
                    )*
                }
            }
            
            pub fn is_datetime_field(&self) -> bool {
                match self {
                    $(
                        $(#[$variant_attrs])*
                        $enum_name::$variant => {
                            stringify!($($data_type)?) .replace("\"", "") == "datetime"
                        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…