pub struct PreludeTypeName {
pub name: &'static str,
pub used_for: &'static str,
}Expand description
A Rust prelude type that the emitted file names without a path, and what needs it.
Fields§
§name: &'static strThe prelude identifier, for example Option.
used_for: &'static strWhat generated code can name it for, for example every optional field,
used in the shadowing error.
Trait Implementations§
Source§impl Clone for PreludeTypeName
impl Clone for PreludeTypeName
Source§fn clone(&self) -> PreludeTypeName
fn clone(&self) -> PreludeTypeName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PreludeTypeName
Auto Trait Implementations§
impl Freeze for PreludeTypeName
impl RefUnwindSafe for PreludeTypeName
impl Send for PreludeTypeName
impl Sync for PreludeTypeName
impl Unpin for PreludeTypeName
impl UnsafeUnpin for PreludeTypeName
impl UnwindSafe for PreludeTypeName
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