Skip to content
Clone
e50e272
34 lines 680 B Rust
//! Arch Linux — 开发 — archlinux.org
//!
//! archlinux
//! 站点不允许内嵌,渲染成带平台标识的卡片。
use crate::parse::{EmbedRule, Platform};
use crate::Category;
/// Arch Linux — 开发 — archlinux.org
pub struct Archlinux;
impl Platform for Archlinux {
fn id(&self) -> &'static str {
"archlinux"
}
fn name(&self) -> &'static str {
"Arch Linux"
}
fn category(&self) -> Category {
Category::Dev
}
fn domains(&self) -> &'static [&'static str] {
&["archlinux.org"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: Archlinux = Archlinux;