pub enum DeclarationScope {
Global,
Local,
}Expand description
Scope of a declaration
Variants§
Trait Implementations§
Source§impl Clone for DeclarationScope
impl Clone for DeclarationScope
Source§fn clone(&self) -> DeclarationScope
fn clone(&self) -> DeclarationScope
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 DeclarationScope
Source§impl Debug for DeclarationScope
impl Debug for DeclarationScope
impl Eq for DeclarationScope
Source§impl PartialEq for DeclarationScope
impl PartialEq for DeclarationScope
Source§fn eq(&self, other: &DeclarationScope) -> bool
fn eq(&self, other: &DeclarationScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeclarationScope
Auto Trait Implementations§
impl Freeze for DeclarationScope
impl RefUnwindSafe for DeclarationScope
impl Send for DeclarationScope
impl Sync for DeclarationScope
impl Unpin for DeclarationScope
impl UnsafeUnpin for DeclarationScope
impl UnwindSafe for DeclarationScope
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