Enum stc_ts_file_analyzer::analyzer::expr::TypeOfMode
source · [−]pub enum TypeOfMode {
LValue,
RValue,
}
Variants
LValue
Used for l-values.
This is used to allow
type Num = { '0': string } | { [n: number]: number }
declare var num: Num
num[0] = 1
num['0'] = 'ok'
RValue
Use for r-values.
Trait Implementations
sourceimpl Clone for TypeOfMode
impl Clone for TypeOfMode
sourcefn clone(&self) -> TypeOfMode
fn clone(&self) -> TypeOfMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TypeOfMode
impl Debug for TypeOfMode
sourceimpl Default for TypeOfMode
impl Default for TypeOfMode
sourceimpl PartialEq<TypeOfMode> for TypeOfMode
impl PartialEq<TypeOfMode> for TypeOfMode
sourcefn eq(&self, other: &TypeOfMode) -> bool
fn eq(&self, other: &TypeOfMode) -> bool
impl Copy for TypeOfMode
impl Eq for TypeOfMode
impl StructuralEq for TypeOfMode
impl StructuralPartialEq for TypeOfMode
Auto Trait Implementations
impl RefUnwindSafe for TypeOfMode
impl Send for TypeOfMode
impl Sync for TypeOfMode
impl Unpin for TypeOfMode
impl UnwindSafe for TypeOfMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.