mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
docs: small details with refs
This commit is contained in:
parent
7f3cba475e
commit
af5fb90de3
1 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,8 @@
|
||||||
//! interact with [Instance] managers.
|
//! interact with [Instance] managers.
|
||||||
//!
|
//!
|
||||||
//! ### async
|
//! ### async
|
||||||
//! this library is natively async and thus async usage should be preferred if possible
|
//! this library is natively async and thus async usage should be preferred if possible with
|
||||||
|
//! [instance::a_sync::Instance]
|
||||||
//!
|
//!
|
||||||
//! ```rust,no_run
|
//! ```rust,no_run
|
||||||
//! use codemp::Controller;
|
//! use codemp::Controller;
|
||||||
|
@ -68,7 +69,7 @@
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ### sync
|
//! ### sync
|
||||||
//! if async is not viable, including the feature `sync` will provide a sync-only Instance variant
|
//! if async is not viable, including the feature `sync` will provide a sync-only [instance::sync::Instance] variant
|
||||||
//!
|
//!
|
||||||
//! ```rust,no_run
|
//! ```rust,no_run
|
||||||
//! # use codemp::instance::sync::Instance;
|
//! # use codemp::instance::sync::Instance;
|
||||||
|
@ -101,7 +102,7 @@
|
||||||
//!
|
//!
|
||||||
//! ### global
|
//! ### global
|
||||||
//! if instantiating the [Instance] manager is not possible, adding the feature `global` will
|
//! if instantiating the [Instance] manager is not possible, adding the feature `global` will
|
||||||
//! provide a static lazyly-allocated global reference.
|
//! provide a static lazyly-allocated global reference: [struct@instance::global::INSTANCE].
|
||||||
//!
|
//!
|
||||||
//! ```rust,no_run
|
//! ```rust,no_run
|
||||||
//! # use codemp::instance::sync::Instance;
|
//! # use codemp::instance::sync::Instance;
|
||||||
|
|
Loading…
Reference in a new issue