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§
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 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.