VariantParam

Trait VariantParam 

Source
pub trait VariantParam: 'static {
    const CATEGORY: &'static str;
    const VALUE: &'static str;
    const PARENT_VALUE: Option<&'static str>;
}
Expand description

A type that participates in the variant system.

Declares its category (e.g., "graph"), value (e.g., "SimpleGraph"), and optional parent in the subtype hierarchy.

Required Associated Constants§

Source

const CATEGORY: &'static str

Category name (e.g., "graph", "weight", "k").

Source

const VALUE: &'static str

Type name within the category (e.g., "SimpleGraph", "i32").

Source

const PARENT_VALUE: Option<&'static str>

Parent type name in the subtype hierarchy, or None for root types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl VariantParam for f64

Source§

const CATEGORY: &'static str = "weight"

Source§

const VALUE: &'static str = "f64"

Source§

const PARENT_VALUE: Option<&'static str> = None

Source§

impl VariantParam for i32

Source§

const CATEGORY: &'static str = "weight"

Source§

const VALUE: &'static str = "i32"

Source§

const PARENT_VALUE: Option<&'static str>

Implementors§

Source§

impl VariantParam for BipartiteGraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "BipartiteGraph"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for DirectedGraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "DirectedGraph"

Source§

const PARENT_VALUE: Option<&'static str> = None

Source§

impl VariantParam for KingsSubgraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "KingsSubgraph"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for PlanarGraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "PlanarGraph"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for SimpleGraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "SimpleGraph"

Source§

const PARENT_VALUE: Option<&'static str> = None

Source§

impl VariantParam for TriangularSubgraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "TriangularSubgraph"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for UnitDiskGraph

Source§

const CATEGORY: &'static str = "graph"

Source§

const VALUE: &'static str = "UnitDiskGraph"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for One

Source§

const CATEGORY: &'static str = "weight"

Source§

const VALUE: &'static str = "One"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for K1

Source§

const CATEGORY: &'static str = "k"

Source§

const VALUE: &'static str = "K1"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for K2

Source§

const CATEGORY: &'static str = "k"

Source§

const VALUE: &'static str = "K2"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for K3

Source§

const CATEGORY: &'static str = "k"

Source§

const VALUE: &'static str = "K3"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for K4

Source§

const CATEGORY: &'static str = "k"

Source§

const VALUE: &'static str = "K4"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for K5

Source§

const CATEGORY: &'static str = "k"

Source§

const VALUE: &'static str = "K5"

Source§

const PARENT_VALUE: Option<&'static str>

Source§

impl VariantParam for KN

Source§

const CATEGORY: &'static str = "k"

Source§

const VALUE: &'static str = "KN"

Source§

const PARENT_VALUE: Option<&'static str> = None