#[repr(u32)]pub enum SoundDiagnosticCode {
ExcessPropertyStickyFreshness = 9_001,
MutableArrayCovariance = 9_002,
MethodBivariance = 9_003,
AnyEscape = 9_004,
EnumNumberAssignment = 9_005,
MissingIndexSignature = 9_006,
UnsafeTypeAssertion = 9_007,
UncheckedIndexedAccess = 9_008,
}Expand description
Sound Mode diagnostic codes.
These use the TS9xxx range to distinguish from standard TypeScript errors.
Variants§
ExcessPropertyStickyFreshness = 9_001
TS9001: Excess property via sticky freshness. Object literal has excess properties that would be lost.
MutableArrayCovariance = 9_002
TS9002: Mutable array covariance. Assigning Dog[] to Animal[] allows pushing Cat.
MethodBivariance = 9_003
TS9003: Method bivariance. Method parameters should be contravariant, not bivariant.
AnyEscape = 9_004
TS9004: Any escape.
any is being used to bypass structural checks.
EnumNumberAssignment = 9_005
TS9005: Enum-number assignment. Enum values should not be freely assignable to/from number.
MissingIndexSignature = 9_006
TS9006: Missing index signature. Object being used as a map without proper index signature.
UnsafeTypeAssertion = 9_007
TS9007: Unsafe type assertion. Type assertion doesn’t match actual runtime type.
UncheckedIndexedAccess = 9_008
TS9008: Unchecked indexed access. Accessing array/object by index without undefined check.
Implementations§
Trait Implementations§
Source§impl Clone for SoundDiagnosticCode
impl Clone for SoundDiagnosticCode
Source§fn clone(&self) -> SoundDiagnosticCode
fn clone(&self) -> SoundDiagnosticCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SoundDiagnosticCode
impl Debug for SoundDiagnosticCode
Source§impl Hash for SoundDiagnosticCode
impl Hash for SoundDiagnosticCode
Source§impl PartialEq for SoundDiagnosticCode
impl PartialEq for SoundDiagnosticCode
impl Copy for SoundDiagnosticCode
impl Eq for SoundDiagnosticCode
impl StructuralPartialEq for SoundDiagnosticCode
Auto Trait Implementations§
impl Freeze for SoundDiagnosticCode
impl RefUnwindSafe for SoundDiagnosticCode
impl Send for SoundDiagnosticCode
impl Sync for SoundDiagnosticCode
impl Unpin for SoundDiagnosticCode
impl UnsafeUnpin for SoundDiagnosticCode
impl UnwindSafe for SoundDiagnosticCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.