pub struct TransientFactory { /* private fields */ }Expand description
Transient factory - creates new instance every time
Optimization: Stores type-erased factory to avoid generic overhead.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransientFactory
impl !RefUnwindSafe for TransientFactory
impl Send for TransientFactory
impl Sync for TransientFactory
impl Unpin for TransientFactory
impl !UnwindSafe for TransientFactory
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
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging