INNER CODE UNIT · Rust

is_available_for_archived_files

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

            pub fn is_available_for_archived_files(&self) -> bool {
                match self {
                    $(
                        $(#[$variant_attrs])*
                        $enum_name::$variant => {
                            stringify!($($for_archived)?) == "true"
                        }
                    )*
                }
            }
            
            pub fn get_weight(&self) -> i32 {
                match self {
                    $(
                        $(#[$variant_attrs])*
                        $enum_name::$variant => {
                            stringify!($($weight)?) .parse().unwrap_or(0)
                        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…