Trait metis::option::Opt

source ·
pub trait Opt: Sealed {
    const INDEX: usize;

    // Required method
    fn value(self) -> Idx;
}
Expand description

Trait implemented by METIS’ options.

See crate::Graph::set_options for an example. It is also used in crate::Mesh::set_options.

Required Associated Constants§

source

const INDEX: usize

Index of the option in the array from crate::Graph::set_options and crate::Mesh::set_options.

Required Methods§

source

fn value(self) -> Idx

Convert the value into metis’ format, for use with crate::Graph::set_options and crate::Mesh::set_options.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Opt for CType

source§

const INDEX: usize = 2usize

source§

impl Opt for IpType

source§

const INDEX: usize = 3usize

source§

impl Opt for ObjType

source§

const INDEX: usize = 1usize

source§

impl Opt for PType

source§

const INDEX: usize = 0usize

source§

impl Opt for RType

source§

const INDEX: usize = 4usize

source§

impl Opt for CCOrder

source§

const INDEX: usize = 14usize

source§

impl Opt for Compress

source§

const INDEX: usize = 13usize

source§

impl Opt for Contig

source§

const INDEX: usize = 12usize

source§

impl Opt for DbgLvl

source§

const INDEX: usize = 5usize

source§

impl Opt for MinConn

source§

const INDEX: usize = 11usize

source§

impl Opt for NCuts

source§

const INDEX: usize = 8usize

source§

impl Opt for NIter

source§

const INDEX: usize = 7usize

source§

impl Opt for NSeps

source§

const INDEX: usize = 16usize

source§

impl Opt for No2Hop

source§

const INDEX: usize = 20usize

source§

impl Opt for PFactor

source§

const INDEX: usize = 15usize

source§

impl Opt for Seed

source§

const INDEX: usize = 9usize

source§

impl Opt for UFactor

source§

const INDEX: usize = 17usize