Enum FnNamespace
#[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§
§impl FnNamespace
 
impl FnNamespace
pub const fn is_module_namespace(self) -> bool
pub const fn is_module_namespace(self) -> bool
Is this a module namespace?
pub const fn is_global_namespace(self) -> bool
pub const fn is_global_namespace(self) -> bool
Is this a global namespace?
Trait Implementations§
§impl Clone for FnNamespace
 
impl Clone for FnNamespace
§fn clone(&self) -> FnNamespace
 
fn clone(&self) -> FnNamespace
Returns a duplicate 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 more§impl Debug for FnNamespace
 
impl Debug for FnNamespace
§impl Hash for FnNamespace
 
impl Hash for FnNamespace
§impl Ord for FnNamespace
 
impl Ord for FnNamespace
§impl PartialEq for FnNamespace
 
impl PartialEq for FnNamespace
§impl PartialOrd for FnNamespace
 
impl PartialOrd 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,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.