pub enum SubModules {
None,
Files,
Inline,
}
Expand description
Defines how the sub modules of the Module
will be generated when calling
Module::to_code()
.
Variants§
None
No code is generated for any sub-module.
Files
The sub-modules are references as separate files.
This will generate something like this:
ⓘ
pub mod sub_module;
pub mod another_module;
// Actual module code
Inline
The sub-modules are generated as inline modules.
This will generate something like this:
ⓘ
// Actual module code
pub mod sub_module {
// Sub-Module Code
}
pub mod another_module {
// Sub-Module Code
}
Trait Implementations§
Source§impl Clone for SubModules
impl Clone for SubModules
Source§fn clone(&self) -> SubModules
fn clone(&self) -> SubModules
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubModules
impl Debug for SubModules
Source§impl PartialEq for SubModules
impl PartialEq for SubModules
impl Copy for SubModules
impl Eq for SubModules
impl StructuralPartialEq for SubModules
Auto Trait Implementations§
impl Freeze for SubModules
impl RefUnwindSafe for SubModules
impl Send for SubModules
impl Sync for SubModules
impl Unpin for SubModules
impl UnwindSafe for SubModules
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.