Opts

Trait Opts 

Source
pub trait Opts {
    type Spec: Default + Copy;

    // Required methods
    fn len(&mut self, i: Link) -> &mut Data;
    fn top(&mut self, i: Link) -> &mut Data;
    fn ulink(&mut self, i: Link) -> &mut Link;
    fn dlink(&mut self, i: Link) -> &mut Link;
    fn set_data(&mut self, pk: Link, s: Self::Spec) -> Link;
    fn get_spec_item(s: Self::Spec) -> Link;

    // Provided method
    fn init_links(
        &mut self,
        n: Count,
        np: Count,
        order: OptOrder,
        os: &[Vec<Self::Spec>],
    ) { ... }
}

Required Associated Types§

Required Methods§

Source

fn len(&mut self, i: Link) -> &mut Data

Source

fn top(&mut self, i: Link) -> &mut Data

Source

fn set_data(&mut self, pk: Link, s: Self::Spec) -> Link

Source

fn get_spec_item(s: Self::Spec) -> Link

Provided Methods§

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.

Implementors§

Source§

impl Opts for dlx::c::ONodes

Source§

type Spec = (u64, i64)

Source§

impl Opts for dlx::x::ONodes