pub struct Type { /* private fields */ }
Expand description
Represents a type.
Implementations§
Source§impl Type
impl Type
Sourcepub fn keyed<TKey, TType: ?Sized>() -> Self
pub fn keyed<TKey, TType: ?Sized>() -> Self
Initializes a new instance of a type based on another type as a key.
Sourcepub fn factory_of<TSvc: ?Sized>() -> Self
pub fn factory_of<TSvc: ?Sized>() -> Self
Initializes a new instance of a type for a factory function based on the specified return type.
Trait Implementations§
impl Eq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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