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