Enum code_generator::NameType
source · pub enum NameType {
Default,
ConstDefine,
Type,
Member,
Function,
File,
FixedCase(CaseType),
Bypass,
}
Expand description
The name type allows the struct to use the generation info to decide the case type of the name based on the type of name.
The FixedCase variant is used to override the CaseType discovery of normal code generation.
The Bypass variant is used to provide a name without having the generator use any sort of formatting on it.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NameType
impl RefUnwindSafe for NameType
impl Send for NameType
impl Sync for NameType
impl Unpin for NameType
impl UnwindSafe for NameType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)