pub enum ModuleIdent {
Root,
Namespace(NamespaceId),
Schema(SchemaId),
Both(NamespaceId, SchemaId),
}
Expand description
Identifies the module the code gets rendered to.
Variants§
Root
The root module.
Namespace(NamespaceId)
The module of the namespace of the current type.
Schema(SchemaId)
The module of the schema of the current type.
Both(NamespaceId, SchemaId)
The module of the namespace and the schema of the current type.
Trait Implementations§
Source§impl Clone for ModuleIdent
impl Clone for ModuleIdent
Source§fn clone(&self) -> ModuleIdent
fn clone(&self) -> ModuleIdent
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 ModuleIdent
impl Debug for ModuleIdent
Source§impl PartialEq for ModuleIdent
impl PartialEq for ModuleIdent
impl Copy for ModuleIdent
impl Eq for ModuleIdent
impl StructuralPartialEq for ModuleIdent
Auto Trait Implementations§
impl Freeze for ModuleIdent
impl RefUnwindSafe for ModuleIdent
impl Send for ModuleIdent
impl Sync for ModuleIdent
impl Unpin for ModuleIdent
impl UnwindSafe for ModuleIdent
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.