Trait BuilderExt

Source
pub trait BuilderExt {
    // Required methods
    fn interfaces_get_all(&self) -> Vec<InterfaceDesc>;
    fn interfaces_contain<Iface: 'static>(&self) -> bool;
    fn interfaces_contain_type_id(&self, type_id: &TypeId) -> bool;
    fn metadata_get_first<Meta: 'static>(&self) -> Option<&Meta>;
    fn metadata_find_first<Meta: 'static>(
        &self,
        pred: impl Fn(&Meta) -> bool,
    ) -> Option<&Meta>;
    fn metadata_get_all<Meta: 'static>(&self) -> Vec<&Meta>;
    fn metadata_find_all<Meta: 'static>(
        &self,
        pred: impl Fn(&Meta) -> bool,
    ) -> Vec<&Meta>;
    fn metadata_contains<Meta: 'static>(
        &self,
        pred: impl Fn(&Meta) -> bool,
    ) -> bool;
}

Required Methods§

Source

fn interfaces_get_all(&self) -> Vec<InterfaceDesc>

Source

fn interfaces_contain<Iface: 'static>(&self) -> bool

Source

fn interfaces_contain_type_id(&self, type_id: &TypeId) -> bool

Source

fn metadata_get_first<Meta: 'static>(&self) -> Option<&Meta>

Source

fn metadata_find_first<Meta: 'static>( &self, pred: impl Fn(&Meta) -> bool, ) -> Option<&Meta>

Source

fn metadata_get_all<Meta: 'static>(&self) -> Vec<&Meta>

Source

fn metadata_find_all<Meta: 'static>( &self, pred: impl Fn(&Meta) -> bool, ) -> Vec<&Meta>

Source

fn metadata_contains<Meta: 'static>(&self, pred: impl Fn(&Meta) -> bool) -> bool

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<T: Builder + ?Sized> BuilderExt for T