pub enum Spelling {
Hygienic,
Bare,
}Expand description
How generated code spells prelude names.
Variants§
Hygienic
Fully qualified, such as ::core::primitive::u32 and <root>::__private::Vec.
For derives, whose output lands in modules where these names may be shadowed.
Bare
Unqualified, such as u32, Some and Vec. For committed source.
Trait Implementations§
impl Copy for Spelling
impl Eq for Spelling
impl StructuralPartialEq for Spelling
Auto Trait Implementations§
impl Freeze for Spelling
impl RefUnwindSafe for Spelling
impl Send for Spelling
impl Sync for Spelling
impl Unpin for Spelling
impl UnsafeUnpin for Spelling
impl UnwindSafe for Spelling
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