Struct Namespace
pub struct Namespace { /* private fields */ }Expand description
Namespace metadata without platform syscalls.
Implementations§
§impl Namespace
impl Namespace
pub const fn new(kind: NamespaceKind) -> Namespace
pub const fn new(kind: NamespaceKind) -> Namespace
Creates namespace metadata from a kind.
pub const fn kind(&self) -> NamespaceKind
pub const fn kind(&self) -> NamespaceKind
Returns the namespace kind.
Trait Implementations§
§impl Ord for Namespace
impl Ord for Namespace
§impl PartialOrd for Namespace
impl PartialOrd for Namespace
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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