Skip to main content

ListHost

Trait ListHost 

Source
pub trait ListHost: Host {
    type Item<'a>;

    // Required method
    fn append_items(
        &self,
        editor: &SyntaxEditor,
        items: &[Self::Item<'_>],
    ) -> Result<(), Box<dyn Error>>;
}

Required Associated Types§

Source

type Item<'a>

Required Methods§

Source

fn append_items( &self, editor: &SyntaxEditor, items: &[Self::Item<'_>], ) -> Result<(), Box<dyn Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ListHost for Enum

Source§

type Item<'a> = Variant<'a>

Source§

impl ListHost for Fn

Source§

type Item<'a> = Param<'a>

Source§

impl ListHost for Struct

Source§

type Item<'a> = Field<'a>