pub struct LintContextImpl { /* private fields */ }Expand description
Default implementation of LintContext.
Implementations§
Source§impl LintContextImpl
impl LintContextImpl
Sourcepub fn add_object(&mut self, object: Object)
pub fn add_object(&mut self, object: Object)
Add a valid object to the context.
Sourcepub fn add_invalid_object(&mut self, invalid: InvalidObject)
pub fn add_invalid_object(&mut self, invalid: InvalidObject)
Add an invalid object to the context.
Sourcepub fn objects_mut(&mut self) -> &mut Vec<Object>
pub fn objects_mut(&mut self) -> &mut Vec<Object>
Get a mutable reference to the objects.
Trait Implementations§
Source§impl Debug for LintContextImpl
impl Debug for LintContextImpl
Source§impl Default for LintContextImpl
impl Default for LintContextImpl
Source§fn default() -> LintContextImpl
fn default() -> LintContextImpl
Returns the “default value” for a type. Read more
Source§impl LintContext for LintContextImpl
impl LintContext for LintContextImpl
Source§fn invalid_objects(&self) -> &[InvalidObject]
fn invalid_objects(&self) -> &[InvalidObject]
Get all objects that failed to parse.
Auto Trait Implementations§
impl Freeze for LintContextImpl
impl RefUnwindSafe for LintContextImpl
impl Send for LintContextImpl
impl Sync for LintContextImpl
impl Unpin for LintContextImpl
impl UnwindSafe for LintContextImpl
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> 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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.