pub struct StaticFace { /* private fields */ }Expand description
One built-in face after registration checks have passed. 通过注册检查后的一个内置注册面。
Implementations§
Source§impl StaticFace
impl StaticFace
Sourcepub const fn new(id: NodeId, parent: NodeId, owns_registry: bool) -> StaticFace
pub const fn new(id: NodeId, parent: NodeId, owns_registry: bool) -> StaticFace
Create a face record from its already-checked identity, parent, and registry ownership; nothing is validated here. 用已校验的身份、父级与注册表归属创建注册面记录;此处不做校验。
Sourcepub const fn owns_registry(self) -> bool
pub const fn owns_registry(self) -> bool
Whether this face provides a registry its children may register into. 该注册面是否提供可供子级注册的注册表。
Trait Implementations§
Source§impl Clone for StaticFace
impl Clone for StaticFace
Source§fn clone(&self) -> StaticFace
fn clone(&self) -> StaticFace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StaticFace
Source§impl Debug for StaticFace
impl Debug for StaticFace
impl Eq for StaticFace
Source§impl PartialEq for StaticFace
impl PartialEq for StaticFace
impl StructuralPartialEq for StaticFace
Auto Trait Implementations§
impl Freeze for StaticFace
impl RefUnwindSafe for StaticFace
impl Send for StaticFace
impl Sync for StaticFace
impl Unpin for StaticFace
impl UnsafeUnpin for StaticFace
impl UnwindSafe for StaticFace
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