pub enum StripError {
Unsupported {
construct: Unsupported,
line: u32,
column: u32,
},
Syntax {
line: u32,
column: u32,
},
StripperBug {
line: u32,
column: u32,
},
}Expand description
Why a rule module could not be prepared for execution.
Variants§
Unsupported
The source uses a construct that generates runtime code.
Fields
§
construct: UnsupportedWhich construct.
Syntax
The source does not parse as TypeScript.
StripperBug
The stripped output does not parse as JavaScript, which means this stripper has a bug rather than the rule having one.
Trait Implementations§
Source§impl Clone for StripError
impl Clone for StripError
Source§fn clone(&self) -> StripError
fn clone(&self) -> StripError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StripError
impl Debug for StripError
Source§impl Display for StripError
impl Display for StripError
impl Eq for StripError
Source§impl Error for StripError
impl Error for StripError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for StripError
impl PartialEq for StripError
impl StructuralPartialEq for StripError
Auto Trait Implementations§
impl Freeze for StripError
impl RefUnwindSafe for StripError
impl Send for StripError
impl Sync for StripError
impl Unpin for StripError
impl UnsafeUnpin for StripError
impl UnwindSafe for StripError
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.