Struct stc_ts_types::CommonTypeMetadata
source · [−]pub struct CommonTypeMetadata {
pub implicit: bool,
pub infected_by_this_in_object_literal: bool,
pub prevent_converting_to_children: bool,
pub contains_infer_type: bool,
pub prevent_complex_simplification: bool,
pub resolved_from_var: bool,
pub prevent_generalization: bool,
pub destructure_key: DestructureId,
}
Expand description
Common metadata shared among crate::Types.
Fields
implicit: bool
infected_by_this_in_object_literal: bool
prevent_converting_to_children: bool
contains_infer_type: bool
prevent_complex_simplification: bool
If this mark is applied, type will not be inferred (based on constraint) while simplifying.
resolved_from_var: bool
This mark is applied to types resolved from variables.
Used to distinguish object literal with a reference to object literal.
prevent_generalization: bool
TODO(kdy1): Move this to LitTypeMetadata
If the mark is applied, it means that the literal should not be generalized.
destructure_key: DestructureId
Trait Implementations
sourceimpl Clone for CommonTypeMetadata
impl Clone for CommonTypeMetadata
sourcefn clone(&self) -> CommonTypeMetadata
fn clone(&self) -> CommonTypeMetadata
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 CommonTypeMetadata
impl Debug for CommonTypeMetadata
sourceimpl Default for CommonTypeMetadata
impl Default for CommonTypeMetadata
sourcefn default() -> CommonTypeMetadata
fn default() -> CommonTypeMetadata
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CommonTypeMetadata
impl<'de> Deserialize<'de> for CommonTypeMetadata
sourcefn 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
sourceimpl EqIgnoreSpan for CommonTypeMetadata
impl EqIgnoreSpan for CommonTypeMetadata
Note
This struct is treated as a span while comparison. It means, EqIgnoreSpan will always return true.
fn eq_ignore_span(&self, _: &Self) -> bool
sourceimpl<F: ?Sized> FoldWith<F> for CommonTypeMetadata
impl<F: ?Sized> FoldWith<F> for CommonTypeMetadata
Noop.
sourceimpl PartialEq<CommonTypeMetadata> for CommonTypeMetadata
impl PartialEq<CommonTypeMetadata> for CommonTypeMetadata
sourcefn eq(&self, other: &CommonTypeMetadata) -> bool
fn eq(&self, other: &CommonTypeMetadata) -> bool
sourceimpl Serialize for CommonTypeMetadata
impl Serialize for CommonTypeMetadata
sourceimpl TypeEq for CommonTypeMetadata
impl TypeEq for CommonTypeMetadata
sourceimpl<F: ?Sized> VisitMutWith<F> for CommonTypeMetadata
impl<F: ?Sized> VisitMutWith<F> for CommonTypeMetadata
Noop.
fn visit_mut_children_with(&mut self, _: &mut F)
fn visit_mut_with(&mut self, visitor: &mut V)where
V: VisitMut<Self>,
sourceimpl<F: ?Sized> VisitWith<F> for CommonTypeMetadata
impl<F: ?Sized> VisitWith<F> for CommonTypeMetadata
Noop.
fn visit_children_with(&self, _: &mut F)
fn visit_with(&self, visitor: &mut V)where
V: Visit<Self>,
impl Copy for CommonTypeMetadata
impl Eq for CommonTypeMetadata
impl StructuralEq for CommonTypeMetadata
impl StructuralPartialEq for CommonTypeMetadata
impl Visitable for CommonTypeMetadata
Auto Trait Implementations
impl RefUnwindSafe for CommonTypeMetadata
impl Send for CommonTypeMetadata
impl Sync for CommonTypeMetadata
impl Unpin for CommonTypeMetadata
impl UnwindSafe for CommonTypeMetadata
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.