pub enum PostEditViolation {
DoesNotParse,
DeclarationLost {
name: String,
},
MemberLost {
container: String,
member: String,
},
ValueChanged {
enumeration: String,
member: String,
},
UnresolvedReference {
name: String,
},
ExportInUse {
name: String,
},
MixedExport {
name: String,
},
ImportLeftBehind {
name: String,
},
}Expand description
Why the check refuses an edit.
Variants§
DoesNotParse
The edited text does not parse.
DeclarationLost
A class or an enum outside the edited bytes is not in the edited text.
MemberLost
A class element or an enum member outside the edited bytes is not in the edited text, for example because the edit joined two members.
Fields
ValueChanged
A kept enum member has a different constant value.
UnresolvedReference
A reference that resolved before the edit is unresolved after it.
ExportInUse
The edit removes an export that other code still uses. The caller reports this violation: the check of one file does not know the other files.
MixedExport
Declarations of one name that TypeScript merges are partly exported,
as after the removal of export from one overload signature, or from
a class but not from its interface. TypeScript requires all
declarations of one merge to be exported, or none.
ImportLeftBehind
An import stays, but the export list that used its binding is gone.
Implementations§
Trait Implementations§
Source§impl Clone for PostEditViolation
impl Clone for PostEditViolation
Source§fn clone(&self) -> PostEditViolation
fn clone(&self) -> PostEditViolation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PostEditViolation
impl Debug for PostEditViolation
impl Eq for PostEditViolation
Source§impl PartialEq for PostEditViolation
impl PartialEq for PostEditViolation
impl StructuralPartialEq for PostEditViolation
Auto Trait Implementations§
impl Forget for PostEditViolation
impl Freeze for PostEditViolation
impl Move for PostEditViolation
impl RefUnwindSafe for PostEditViolation
impl Send for PostEditViolation
impl Sync for PostEditViolation
impl Unpin for PostEditViolation
impl UnsafeUnpin for PostEditViolation
impl UnwindSafe for PostEditViolation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more