pub struct AuthoringContext { /* private fields */ }Expand description
Filesystem and identity scope for one authoring operation. 单次注册面创作操作使用的文件系统与身份上下文。
Implementations§
Source§impl AuthoringContext
impl AuthoringContext
Sourcepub fn new(
package_root: impl Into<PathBuf>,
namespace: impl Into<String>,
) -> Self
pub fn new( package_root: impl Into<PathBuf>, namespace: impl Into<String>, ) -> Self
Pair a package root with the namespace its faces are authored under. 把一个包根与其注册面创作所用的命名空间配对。
The values are inert until AuthoringContext::scope installs them, so
constructing one never touches process-global state.
这些取值在 AuthoringContext::scope 安装之前不生效,因此构造本身不会触碰
进程级状态。
Trait Implementations§
Source§impl Clone for AuthoringContext
impl Clone for AuthoringContext
Auto Trait Implementations§
impl Freeze for AuthoringContext
impl RefUnwindSafe for AuthoringContext
impl Send for AuthoringContext
impl Sync for AuthoringContext
impl Unpin for AuthoringContext
impl UnsafeUnpin for AuthoringContext
impl UnwindSafe for AuthoringContext
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