pub struct UseType<Type>(pub Type);Expand description
Imports a single type so that it can be used later.
Renders as use Type;. Adds a new line after the semicolon.
Tuple Fields§
§0: TypeTrait Implementations§
Auto Trait Implementations§
impl<Type> Freeze for UseType<Type>where
Type: Freeze,
impl<Type> RefUnwindSafe for UseType<Type>where
Type: RefUnwindSafe,
impl<Type> Send for UseType<Type>where
Type: Send,
impl<Type> Sync for UseType<Type>where
Type: Sync,
impl<Type> Unpin for UseType<Type>where
Type: Unpin,
impl<Type> UnwindSafe for UseType<Type>where
Type: UnwindSafe,
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