pub struct CargoLintManifest<'a>(/* private fields */);Expand description
Cargo manifest lint settings, including the workspace inheritance switch. The native TOML arena preserves dotted and inline tables alike.
Implementations§
Source§impl<'a> CargoLintManifest<'a>
impl<'a> CargoLintManifest<'a>
Sourcepub fn parse(text: &'a str) -> Result<Self, TomlError>
pub fn parse(text: &'a str) -> Result<Self, TomlError>
Parse one Cargo manifest with the source index’s native Cargo profile.
§Errors
Returns the native syntax or resource refusal for this manifest.
Sourcepub fn production_config_override(&self) -> Option<&str>
pub fn production_config_override(&self) -> Option<&str>
A local Cargo configuration directive that can change which compiler, arguments or additional configuration define the production lint run. Ordinary cache, networking and registry settings do not change that selection.
Sourcepub fn setting(
&self,
workspace: bool,
tool: &str,
name: &str,
) -> Option<(&str, i64)>
pub fn setting( &self, workspace: bool, tool: &str, name: &str, ) -> Option<(&str, i64)>
Look up the effective level and numeric Cargo priority as declared in the workspace or package table. A scalar level has priority zero. Missing settings and invalid level/priority shapes have no effective value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for CargoLintManifest<'a>
impl<'a> Freeze for CargoLintManifest<'a>
impl<'a> Move for CargoLintManifest<'a>
impl<'a> RefUnwindSafe for CargoLintManifest<'a>
impl<'a> Send for CargoLintManifest<'a>
impl<'a> Sync for CargoLintManifest<'a>
impl<'a> Unpin for CargoLintManifest<'a>
impl<'a> UnsafeUnpin for CargoLintManifest<'a>
impl<'a> UnwindSafe for CargoLintManifest<'a>
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
impl<T> EvidenceLease for T
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 more