pub enum PrintKind {
Show 27 variants
AllTargetSpecsJson,
BackendHasMnemonic,
BackendHasZstd,
CallingConventions,
Cfg,
CheckCfg,
CodeModels,
CrateName,
CrateRootLintLevels,
DeploymentTarget,
FileNames,
HostTuple,
LinkArgs,
NativeStaticLibs,
RelocationModels,
SplitDebuginfo,
StackProtectorStrategies,
SupportedCrateTypes,
Sysroot,
TargetCPUs,
TargetFeatures,
TargetLibdir,
TargetList,
TargetSpecJson,
TargetSpecJsonSchema,
TlsModels,
WasmProcMacroTuple,
}Variants§
AllTargetSpecsJson
All target JSON specifications.
BackendHasMnemonic
Does the backend supports the PrintRequest::arg asm!() mnemonic? (perma-unstable)
BackendHasZstd
Does the backend supports Zstd compression? (perma-unstable)
CallingConventions
List of all calling conventions supported by rustc.
Cfg
List of cfg values.
CheckCfg
List of check-cfg values.
CodeModels
List of available code models for the current backend.
CrateName
Name of the crate being compiled.
CrateRootLintLevels
Lint levels of the crate’s root module.
DeploymentTarget
The current selected deployment target. (Apple only)
FileNames
The names of the files created by the --emit=link option. (e.g. libfoo.a)
HostTuple
Target-tuple of the host compiler.
LinkArgs
Linker invocations.
NativeStaticLibs
When compiling a staticlib crate, print the linker flags used.
RelocationModels
List of available relocation models for the current backend.
SplitDebuginfo
List of available split debuginfos for the current target.
StackProtectorStrategies
List of available stack protector strategies for the current backend.
SupportedCrateTypes
List of available crate types for the current target.
Sysroot
Path to the sysroot.
TargetCPUs
List of available CPU values for the current target.
TargetFeatures
List of available target features for the current target.
TargetLibdir
Path to the target libdir.
TargetList
List of supported targets.
TargetSpecJson
Current target JSON specification.
TargetSpecJsonSchema
Target JSON specification schema.
TlsModels
List of available TLS models for the current backend.
WasmProcMacroTuple
Target-tuple for WebAssembly’s proc-macro crates.
Implementations§
Trait Implementations§
Source§impl AllVariants for PrintKind
impl AllVariants for PrintKind
const ALL_VARIANTS: &[PrintKind]
impl Copy for PrintKind
impl Eq for PrintKind
impl StructuralPartialEq for PrintKind
Auto Trait Implementations§
impl DynSend for PrintKind
impl DynSync for PrintKind
impl Freeze for PrintKind
impl RefUnwindSafe for PrintKind
impl Send for PrintKind
impl Sync for PrintKind
impl Unpin for PrintKind
impl UnsafeUnpin for PrintKind
impl UnwindSafe for PrintKind
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
AllTargetSpecsJson: 0 bytesBackendHasMnemonic: 0 bytesBackendHasZstd: 0 bytesCallingConventions: 0 bytesCfg: 0 bytesCheckCfg: 0 bytesCodeModels: 0 bytesCrateName: 0 bytesCrateRootLintLevels: 0 bytesDeploymentTarget: 0 bytesFileNames: 0 bytesHostTuple: 0 bytesLinkArgs: 0 bytesNativeStaticLibs: 0 bytesRelocationModels: 0 bytesSplitDebuginfo: 0 bytesStackProtectorStrategies: 0 bytesSupportedCrateTypes: 0 bytesSysroot: 0 bytesTargetCPUs: 0 bytesTargetFeatures: 0 bytesTargetLibdir: 0 bytesTargetList: 0 bytesTargetSpecJson: 0 bytesTargetSpecJsonSchema: 0 bytesTlsModels: 0 bytesWasmProcMacroTuple: 0 bytes