| 1 |
// SPDX-License-Identifier: Apache-2.0 OR MIT |
| 2 |
// This file is @generated by cargo-config2-internal-codegen |
| 3 |
// (gen_is_none function at tools/codegen/src/main.rs). |
| 4 |
// It is not intended for manual editing. |
| 5 |
|
| 6 |
#![cfg_attr(rustfmt, rustfmt::skip)] |
| 7 |
impl crate::easy::BuildConfig { |
| 8 |
pub(crate) fn is_none(&self) -> bool { |
| 9 |
self.jobs.is_none() && self.rustc.is_none() && self.rustc_wrapper.is_none() |
| 10 |
&& self.rustc_workspace_wrapper.is_none() && self.rustdoc.is_none() |
| 11 |
&& self.target.is_none() && self.target_dir.is_none() |
| 12 |
&& self.build_dir.is_none() && self.rustflags.is_none() |
| 13 |
&& self.rustdocflags.is_none() && self.incremental.is_none() |
| 14 |
&& self.dep_info_basedir.is_none() |
| 15 |
} |
| 16 |
} |
| 17 |
impl crate::easy::DocConfig { |
| 18 |
pub(crate) fn is_none(&self) -> bool { |
| 19 |
self.browser.is_none() |
| 20 |
} |
| 21 |
} |
| 22 |
impl crate::easy::FutureIncompatReportConfig { |
| 23 |
pub(crate) fn is_none(&self) -> bool { |
| 24 |
self.frequency.is_none() |
| 25 |
} |
| 26 |
} |
| 27 |
impl crate::easy::CargoNewConfig { |
| 28 |
pub(crate) fn is_none(&self) -> bool { |
| 29 |
self.vcs.is_none() |
| 30 |
} |
| 31 |
} |
| 32 |
impl crate::easy::HttpConfig { |
| 33 |
pub(crate) fn is_none(&self) -> bool { |
| 34 |
self.debug.is_none() && self.proxy.is_none() && self.timeout.is_none() |
| 35 |
&& self.cainfo.is_none() && self.check_revoke.is_none() |
| 36 |
&& self.low_speed_limit.is_none() && self.multiplexing.is_none() |
| 37 |
&& self.user_agent.is_none() |
| 38 |
} |
| 39 |
} |
| 40 |
impl crate::easy::NetConfig { |
| 41 |
pub(crate) fn is_none(&self) -> bool { |
| 42 |
self.retry.is_none() && self.git_fetch_with_cli.is_none() |
| 43 |
&& self.offline.is_none() |
| 44 |
} |
| 45 |
} |
| 46 |
impl crate::easy::RegistryConfig { |
| 47 |
pub(crate) fn is_none(&self) -> bool { |
| 48 |
self.default.is_none() && self.credential_provider.is_none() |
| 49 |
&& self.token.is_none() && self.global_credential_providers.is_none() |
| 50 |
} |
| 51 |
} |
| 52 |
impl crate::easy::TermConfig { |
| 53 |
pub(crate) fn is_none(&self) -> bool { |
| 54 |
self.quiet.is_none() && self.verbose.is_none() && self.color.is_none() |
| 55 |
&& self.progress.is_none() |
| 56 |
} |
| 57 |
} |
| 58 |
impl crate::easy::TermProgressConfig { |
| 59 |
pub(crate) fn is_none(&self) -> bool { |
| 60 |
self.when.is_none() && self.width.is_none() |
| 61 |
} |
| 62 |
} |
| 63 |
impl crate::de::BuildConfig { |
| 64 |
pub(crate) fn is_none(&self) -> bool { |
| 65 |
self.jobs.is_none() && self.rustc.is_none() && self.rustc_wrapper.is_none() |
| 66 |
&& self.rustc_workspace_wrapper.is_none() && self.rustdoc.is_none() |
| 67 |
&& self.target.is_none() && self.target_dir.is_none() |
| 68 |
&& self.build_dir.is_none() && self.rustflags.is_none() |
| 69 |
&& self.rustdocflags.is_none() && self.incremental.is_none() |
| 70 |
&& self.dep_info_basedir.is_none() |
| 71 |
} |
| 72 |
} |
| 73 |
impl crate::de::DocConfig { |
| 74 |
pub(crate) fn is_none(&self) -> bool { |
| 75 |
self.browser.is_none() |
| 76 |
} |
| 77 |
} |
| 78 |
impl crate::de::FutureIncompatReportConfig { |
| 79 |
pub(crate) fn is_none(&self) -> bool { |
| 80 |
self.frequency.is_none() |
| 81 |
} |
| 82 |
} |
| 83 |
impl crate::de::CargoNewConfig { |
| 84 |
pub(crate) fn is_none(&self) -> bool { |
| 85 |
self.vcs.is_none() |
| 86 |
} |
| 87 |
} |
| 88 |
impl crate::de::HttpConfig { |
| 89 |
pub(crate) fn is_none(&self) -> bool { |
| 90 |
self.debug.is_none() && self.proxy.is_none() && self.timeout.is_none() |
| 91 |
&& self.cainfo.is_none() && self.check_revoke.is_none() |
| 92 |
&& self.low_speed_limit.is_none() && self.multiplexing.is_none() |
| 93 |
&& self.user_agent.is_none() |
| 94 |
} |
| 95 |
} |
| 96 |
impl crate::de::NetConfig { |
| 97 |
pub(crate) fn is_none(&self) -> bool { |
| 98 |
self.retry.is_none() && self.git_fetch_with_cli.is_none() |
| 99 |
&& self.offline.is_none() |
| 100 |
} |
| 101 |
} |
| 102 |
impl crate::de::RegistryConfig { |
| 103 |
pub(crate) fn is_none(&self) -> bool { |
| 104 |
self.default.is_none() && self.credential_provider.is_none() |
| 105 |
&& self.token.is_none() && self.global_credential_providers.is_none() |
| 106 |
} |
| 107 |
} |
| 108 |
impl crate::de::TermConfig { |
| 109 |
pub(crate) fn is_none(&self) -> bool { |
| 110 |
self.quiet.is_none() && self.verbose.is_none() && self.color.is_none() |
| 111 |
&& self.progress.is_none() |
| 112 |
} |
| 113 |
} |
| 114 |
impl crate::de::TermProgress { |
| 115 |
pub(crate) fn is_none(&self) -> bool { |
| 116 |
self.when.is_none() && self.width.is_none() |
| 117 |
} |
| 118 |
} |