#[non_exhaustive]pub enum FnNamespace {
Internal,
Global,
}
Expand description
A type representing the namespace of a function.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl FnNamespace
impl FnNamespace
Sourcepub const fn is_module_namespace(self) -> bool
pub const fn is_module_namespace(self) -> bool
Is this a module namespace?
Sourcepub const fn is_global_namespace(self) -> bool
pub const fn is_global_namespace(self) -> bool
Is this a global namespace?
Trait Implementations§
Source§impl Clone for FnNamespace
impl Clone for FnNamespace
Source§fn clone(&self) -> FnNamespace
fn clone(&self) -> FnNamespace
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FnNamespace
impl Debug for FnNamespace
Source§impl<'de> Deserialize<'de> for FnNamespace
impl<'de> Deserialize<'de> for FnNamespace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FnNamespace
impl Hash for FnNamespace
Source§impl Ord for FnNamespace
impl Ord for FnNamespace
Source§fn cmp(&self, other: &FnNamespace) -> Ordering
fn cmp(&self, other: &FnNamespace) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FnNamespace
impl PartialEq for FnNamespace
Source§impl PartialOrd for FnNamespace
impl PartialOrd for FnNamespace
Source§impl Serialize for FnNamespace
impl Serialize for FnNamespace
impl Copy for FnNamespace
impl Eq for FnNamespace
impl StructuralPartialEq for FnNamespace
Auto Trait Implementations§
impl Freeze for FnNamespace
impl RefUnwindSafe for FnNamespace
impl Send for FnNamespace
impl Sync for FnNamespace
impl Unpin for FnNamespace
impl UnwindSafe for FnNamespace
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.