pub struct CodeIdGenerator { /* private fields */ }Expand description
ID generator for code:api profile
Implementations§
Source§impl CodeIdGenerator
impl CodeIdGenerator
Sourcepub fn module_id(&self, module_name: &str, docs: &str) -> ElementId
pub fn module_id(&self, module_name: &str, docs: &str) -> ElementId
Generate module ID: namespace.module
Sourcepub fn struct_id(
&self,
module_name: &str,
struct_name: &str,
docs: &str,
) -> ElementId
pub fn struct_id( &self, module_name: &str, struct_name: &str, docs: &str, ) -> ElementId
Generate struct ID: namespace.module.Struct
Sourcepub fn method_id(
&self,
module_name: &str,
struct_name: &str,
method_name: &str,
signature: &str,
docs: &str,
) -> ElementId
pub fn method_id( &self, module_name: &str, struct_name: &str, method_name: &str, signature: &str, docs: &str, ) -> ElementId
Generate method ID: namespace.module.Struct.method
Sourcepub fn function_id(
&self,
module_name: &str,
function_name: &str,
docs: &str,
) -> ElementId
pub fn function_id( &self, module_name: &str, function_name: &str, docs: &str, ) -> ElementId
Generate function ID: namespace.module.function
Auto Trait Implementations§
impl Freeze for CodeIdGenerator
impl RefUnwindSafe for CodeIdGenerator
impl Send for CodeIdGenerator
impl Sync for CodeIdGenerator
impl Unpin for CodeIdGenerator
impl UnwindSafe for CodeIdGenerator
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