Struct dill::TypecastBuilder
source · pub struct TypecastBuilder<'a, Iface>where
Iface: 'static + ?Sized,{ /* private fields */ }
Expand description
Takes a dynamic Builder
and casts the instance to desired interface
Implementations§
source§impl<'a, Iface> TypecastBuilder<'a, Iface>where
Iface: 'static + ?Sized,
impl<'a, Iface> TypecastBuilder<'a, Iface>where Iface: 'static + ?Sized,
Trait Implementations§
source§impl<'a, Iface> Builder for TypecastBuilder<'a, Iface>where
Iface: 'static + ?Sized,
impl<'a, Iface> Builder for TypecastBuilder<'a, Iface>where Iface: 'static + ?Sized,
fn instance_type_id(&self) -> TypeId
fn instance_type_name(&self) -> &'static str
fn interfaces(&self) -> Vec<InterfaceDesc>
fn get( &self, cat: &Catalog ) -> Result<Arc<dyn Any + Send + Sync>, InjectionError>
fn check(&self, cat: &Catalog) -> Result<(), ValidationError>
Auto Trait Implementations§
impl<'a, Iface> !RefUnwindSafe for TypecastBuilder<'a, Iface>
impl<'a, Iface: ?Sized> Send for TypecastBuilder<'a, Iface>
impl<'a, Iface: ?Sized> Sync for TypecastBuilder<'a, Iface>
impl<'a, Iface: ?Sized> Unpin for TypecastBuilder<'a, Iface>
impl<'a, Iface> !UnwindSafe for TypecastBuilder<'a, Iface>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more