pub struct AwaitThenableRule;Expand description
Type-aware rule that rejects await on values without a thenable shape.
Trait Implementations§
Source§impl Clone for AwaitThenableRule
impl Clone for AwaitThenableRule
Source§fn clone(&self) -> AwaitThenableRule
fn clone(&self) -> AwaitThenableRule
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 AwaitThenableRule
impl Debug for AwaitThenableRule
Source§impl Default for AwaitThenableRule
impl Default for AwaitThenableRule
Source§fn default() -> AwaitThenableRule
fn default() -> AwaitThenableRule
Returns the “default value” for a type. Read more
Source§impl RustLintRule for AwaitThenableRule
impl RustLintRule for AwaitThenableRule
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Returns the stable rule name exposed to JavaScript and diagnostics.
Source§fn docs_description(&self) -> &'static str
fn docs_description(&self) -> &'static str
Returns the short prose description used in generated rule metadata.
Source§fn messages(&self) -> &'static [RuleMessage]
fn messages(&self) -> &'static [RuleMessage]
Returns the message catalog keyed by
message_id.Source§fn listeners(&self) -> &'static [&'static str]
fn listeners(&self) -> &'static [&'static str]
Returns the AST node kinds this rule wants the host to send.
Source§fn check(&self, ctx: &mut RuleContext<'_>, node: &LintNode)
fn check(&self, ctx: &mut RuleContext<'_>, node: &LintNode)
Checks one host-provided node and records diagnostics in
ctx.Source§fn has_suggestions(&self) -> bool
fn has_suggestions(&self) -> bool
Returns whether diagnostics from this rule may include suggested fixes.
Source§fn requires_type_texts(&self) -> bool
fn requires_type_texts(&self) -> bool
Returns whether the host should attach TypeScript-rendered type text.
impl Copy for AwaitThenableRule
Auto Trait Implementations§
impl Freeze for AwaitThenableRule
impl RefUnwindSafe for AwaitThenableRule
impl Send for AwaitThenableRule
impl Sync for AwaitThenableRule
impl Unpin for AwaitThenableRule
impl UnsafeUnpin for AwaitThenableRule
impl UnwindSafe for AwaitThenableRule
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