pub struct DefaultNamespace;Trait Implementations§
Source§impl Clone for DefaultNamespace
impl Clone for DefaultNamespace
Source§fn clone(&self) -> DefaultNamespace
fn clone(&self) -> DefaultNamespace
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 DefaultNamespace
Source§impl Debug for DefaultNamespace
impl Debug for DefaultNamespace
Source§impl Namespace for DefaultNamespace
impl Namespace for DefaultNamespace
Source§fn generic_static<T>() -> &'static Twhere
T: 'static + Zeroable,
fn generic_static<T>() -> &'static Twhere
T: 'static + Zeroable,
The returned reference points to the static namespaced global variable for each
generic
T. The static’s value is zero-initialized. Read moreSource§fn generic_static_const<T, const N: usize>() -> &'static Twhere
T: 'static + Zeroable,
fn generic_static_const<T, const N: usize>() -> &'static Twhere
T: 'static + Zeroable,
The returned reference points to the static namespaced global variable for each
(T, const N: usize) pair (with lifetimes erased). The static’s value is
zero-initialized. Read moreSource§unsafe fn generic_static_mut<T>() -> *mut Twhere
T: 'static + Zeroable,
unsafe fn generic_static_mut<T>() -> *mut Twhere
T: 'static + Zeroable,
Source§unsafe fn generic_static_const_mut<T, const N: usize>() -> *mut Twhere
T: 'static + Zeroable,
unsafe fn generic_static_const_mut<T, const N: usize>() -> *mut Twhere
T: 'static + Zeroable,
Raw (
*mut T) view of the same slot as
Namespace::generic_static_const: the same T with a different N
is a different address. Read moreAuto Trait Implementations§
impl Freeze for DefaultNamespace
impl RefUnwindSafe for DefaultNamespace
impl Send for DefaultNamespace
impl Sync for DefaultNamespace
impl Unpin for DefaultNamespace
impl UnsafeUnpin for DefaultNamespace
impl UnwindSafe for DefaultNamespace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<NS> NamespaceExt for NSwhere
NS: Namespace,
impl<NS> NamespaceExt for NSwhere
NS: Namespace,
Source§fn get<T>() -> &'static Twhere
T: 'static + Zeroable,
fn get<T>() -> &'static Twhere
T: 'static + Zeroable,
Alias for
Namespace::generic_static.Source§unsafe fn get_mut<T>() -> *mut Twhere
T: 'static + Zeroable,
unsafe fn get_mut<T>() -> *mut Twhere
T: 'static + Zeroable,
Alias for
Namespace::generic_static_mut. Read moreSource§fn once<T>(init: impl FnOnce() -> T) -> &'static T
fn once<T>(init: impl FnOnce() -> T) -> &'static T
Source§fn get_const<T, const N: usize>() -> &'static Twhere
T: 'static + Zeroable,
fn get_const<T, const N: usize>() -> &'static Twhere
T: 'static + Zeroable,
Alias for
Namespace::generic_static_const.Source§unsafe fn get_const_mut<T, const N: usize>() -> *mut Twhere
T: 'static + Zeroable,
unsafe fn get_const_mut<T, const N: usize>() -> *mut Twhere
T: 'static + Zeroable,
Alias for
Namespace::generic_static_const_mut. Read moreSource§fn once_const<T, const N: usize>(init: impl FnOnce() -> T) -> &'static T
fn once_const<T, const N: usize>(init: impl FnOnce() -> T) -> &'static T
Lazily-initialized generic static keyed by
(T, const N: usize). Read more