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<Iface> Builder for TypecastBuilder<'_, Iface>where
Iface: 'static + ?Sized,
impl<Iface> Builder for TypecastBuilder<'_, Iface>where
Iface: 'static + ?Sized,
Source§fn instance_type_id(&self) -> TypeId
fn instance_type_id(&self) -> TypeId
TypeId of the type that this builder suppliesSource§fn instance_type_name(&self) -> &'static str
fn instance_type_name(&self) -> &'static str
Name of the type that this builder supplies in the
mod1::mod2::Typ
formatSource§fn interfaces(&self, clb: &mut dyn FnMut(&InterfaceDesc) -> bool)
fn interfaces(&self, clb: &mut dyn FnMut(&InterfaceDesc) -> bool)
Lists interfaces that the supplied type supports. Avoid using this
low-level method directly - use
BuilderExt convenience methods
instead.Source§fn metadata<'b, 'c>(&'b self, clb: &'c mut dyn FnMut(&'b dyn Any) -> bool)
fn metadata<'b, 'c>(&'b self, clb: &'c mut dyn FnMut(&'b dyn Any) -> bool)
Provider interface for accessing associated metadata. Avoid using this
low-level method directly - use
BuilderExt convenience methods
instead.Auto Trait Implementations§
impl<'a, Iface> Freeze for TypecastBuilder<'a, Iface>where
Iface: ?Sized,
impl<'a, Iface> !RefUnwindSafe for TypecastBuilder<'a, Iface>
impl<'a, Iface> Send for TypecastBuilder<'a, Iface>where
Iface: ?Sized,
impl<'a, Iface> Sync for TypecastBuilder<'a, Iface>where
Iface: ?Sized,
impl<'a, Iface> Unpin for TypecastBuilder<'a, Iface>where
Iface: ?Sized,
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