pub struct ExceptRule {
pub name: String,
pub span: Span,
}Expand description
A single rule in an #@ except: comment.
Fields§
§name: StringThe name of the rule to except.
span: SpanThe span of the rule in the exception comment.
Implementations§
Source§impl ExceptRule
impl ExceptRule
Sourcepub fn target_node(&self, document: &Document) -> Option<SyntaxNode>
pub fn target_node(&self, document: &Document) -> Option<SyntaxNode>
Find the node that this exception comment targets.
Trait Implementations§
Source§impl Clone for ExceptRule
impl Clone for ExceptRule
Source§fn clone(&self) -> ExceptRule
fn clone(&self) -> ExceptRule
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 ExceptRule
impl Debug for ExceptRule
impl Eq for ExceptRule
Source§impl Hash for ExceptRule
impl Hash for ExceptRule
Source§impl PartialEq for ExceptRule
impl PartialEq for ExceptRule
impl StructuralPartialEq for ExceptRule
Auto Trait Implementations§
impl Freeze for ExceptRule
impl RefUnwindSafe for ExceptRule
impl Send for ExceptRule
impl Sync for ExceptRule
impl Unpin for ExceptRule
impl UnsafeUnpin for ExceptRule
impl UnwindSafe for ExceptRule
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§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
Compare self to
key and return true if they are equal.