Enum parse_js::parse::toplevel::TopLevelMode
source · pub enum TopLevelMode {
Global,
Module,
}
Variants§
Trait Implementations§
source§impl Clone for TopLevelMode
impl Clone for TopLevelMode
source§fn clone(&self) -> TopLevelMode
fn clone(&self) -> TopLevelMode
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 TopLevelMode
impl Debug for TopLevelMode
source§impl FromStr for TopLevelMode
impl FromStr for TopLevelMode
source§impl PartialEq for TopLevelMode
impl PartialEq for TopLevelMode
source§fn eq(&self, other: &TopLevelMode) -> bool
fn eq(&self, other: &TopLevelMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TopLevelMode
impl Eq for TopLevelMode
impl StructuralEq for TopLevelMode
impl StructuralPartialEq for TopLevelMode
Auto Trait Implementations§
impl RefUnwindSafe for TopLevelMode
impl Send for TopLevelMode
impl Sync for TopLevelMode
impl Unpin for TopLevelMode
impl UnwindSafe for TopLevelMode
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