Trait ListLike

Source
pub trait ListLike: NativeElement {
    type Item: ListItemLike;

    // Required method
    fn create(children: Vec<Packed<Self::Item>>, tight: bool) -> Self;
}
Expand description

A list, enum, or term list.

Required Associated Types§

Source

type Item: ListItemLike

The kind of list item this list is composed of.

Required Methods§

Source

fn create(children: Vec<Packed<Self::Item>>, tight: bool) -> Self

Create this kind of list from its children and tightness.

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§