Trait PlaceholderExt

Source
pub trait PlaceholderExt<T> {
    // Required method
    fn with_placeholder_matching_items<F: Fn(&Item<T>) -> bool + 'static>(
        self,
        name_matches_item_pairs: impl IntoIterator<Item = (&'static str, F)>,
    ) -> Self;
}

Required Methods§

Source

fn with_placeholder_matching_items<F: Fn(&Item<T>) -> bool + 'static>( self, name_matches_item_pairs: impl IntoIterator<Item = (&'static str, F)>, ) -> Self

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.

Implementations on Foreign Types§

Source§

impl<T> PlaceholderExt<T> for Vec<Item<T>>

Source§

fn with_placeholder_matching_items<F: Fn(&Item<T>) -> bool + 'static>( self, name_matches_item_pairs: impl IntoIterator<Item = (&'static str, F)>, ) -> Self

Implementors§