@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class RustLibraryDescriptionArg extends Object
RustLibraryDescription.AbstractRustLibraryDescriptionArg.
Use the builder to create immutable instances:
RustLibraryDescriptionArg.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
RustLibraryDescriptionArg.Builder
Builds instances of type
RustLibraryDescriptionArg. |
DEFAULT_TARGET_PLATFORM_PARAM_NAME| Modifier and Type | Method and Description |
|---|---|
static RustLibraryDescriptionArg.Builder |
builder()
Creates a builder for
RustLibraryDescriptionArg. |
boolean |
equals(Object another)
This instance is equal to all instances of
RustLibraryDescriptionArg that have equal attribute values. |
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> |
getCompatibleWith()
A list of
config_setting a target is compatible with. |
Optional<String> |
getCrate() |
Optional<String> |
getCrateRoot() |
Optional<Flavor> |
getDefaultPlatform() |
Optional<UnconfiguredBuildTarget> |
getDefaultTargetPlatform()
The name of build target default "new" platform: it is used when a platform is not specified
either globally or in a target which used this target as a dependency.
|
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getDeps() |
Optional<String> |
getEdition() |
com.google.common.collect.ImmutableSortedMap<String,StringWithMacros> |
getEnv() |
com.google.common.collect.ImmutableSortedSet<String> |
getFeatures() |
com.google.common.collect.ImmutableSortedSet<String> |
getLabels() |
com.google.common.collect.ImmutableSet<SourcePath> |
getLicenses() |
com.google.common.collect.ImmutableSortedMap<SourcePath,String> |
getMappedSrcs() |
String |
getName()
Each rule has a name
|
com.google.common.collect.ImmutableSortedMap<String,BuildTarget> |
getNamedDeps() |
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> |
getPlatformDeps() |
NativeLinkableGroup.Linkage |
getPreferredLinkage() |
boolean |
getProcMacro() |
com.google.common.collect.ImmutableList<StringWithMacros> |
getRustcFlags() |
com.google.common.collect.ImmutableSortedSet<SourcePath> |
getSrcs() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getTests() |
int |
hashCode()
Computes a hash code from attributes:
preferredLinkage, procMacro, mappedSrcs, env, edition, features, rustcFlags, crate, crateRoot, platformDeps, compatibleWith, defaultTargetPlatform, labels, licenses, name, namedDeps, deps, srcs, defaultPlatform, tests. |
String |
toString()
Prints the immutable value
RustLibraryDescriptionArg with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitlabelsContainsAnyOfpublic NativeLinkableGroup.Linkage getPreferredLinkage()
preferredLinkage attributepublic boolean getProcMacro()
procMacro attributepublic com.google.common.collect.ImmutableSortedMap<SourcePath,String> getMappedSrcs()
mappedSrcs attributepublic com.google.common.collect.ImmutableSortedMap<String,StringWithMacros> getEnv()
env attributepublic com.google.common.collect.ImmutableSortedSet<String> getFeatures()
features attributepublic com.google.common.collect.ImmutableList<StringWithMacros> getRustcFlags()
rustcFlags attributepublic PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
platformDeps attributepublic com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
BuildRuleArgconfig_setting a target is compatible with.compatibleWith attributepublic Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
BuildRuleArgThe value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.
defaultTargetPlatform attributepublic com.google.common.collect.ImmutableSortedSet<String> getLabels()
labels attributepublic com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
licenses attributepublic String getName()
ConstructorArgname attributepublic com.google.common.collect.ImmutableSortedMap<String,BuildTarget> getNamedDeps()
namedDeps attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
deps attributepublic com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
srcs attributepublic Optional<Flavor> getDefaultPlatform()
defaultPlatform attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
tests attributepublic boolean equals(@Nullable Object another)
RustLibraryDescriptionArg that have equal attribute values.public int hashCode()
preferredLinkage, procMacro, mappedSrcs, env, edition, features, rustcFlags, crate, crateRoot, platformDeps, compatibleWith, defaultTargetPlatform, labels, licenses, name, namedDeps, deps, srcs, defaultPlatform, tests.public String toString()
RustLibraryDescriptionArg with attribute values.public static RustLibraryDescriptionArg.Builder builder()
RustLibraryDescriptionArg.