@NotThreadSafe public static final class RustLibraryDescriptionArg.Builder extends Object
RustLibraryDescriptionArg
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
RustLibraryDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
RustLibraryDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
RustLibraryDescriptionArg.Builder |
addAllFeatures(Iterable<String> elements)
Adds elements to
features sortedSet. |
RustLibraryDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
RustLibraryDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
RustLibraryDescriptionArg.Builder |
addAllRustcFlags(Iterable<? extends StringWithMacros> elements)
Adds elements to
rustcFlags list. |
RustLibraryDescriptionArg.Builder |
addAllSrcs(Iterable<? extends SourcePath> elements)
Adds elements to
srcs sortedSet. |
RustLibraryDescriptionArg.Builder |
addAllTests(Iterable<? extends BuildTarget> elements)
Adds elements to
tests sortedSet. |
RustLibraryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
RustLibraryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
RustLibraryDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
RustLibraryDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
RustLibraryDescriptionArg.Builder |
addFeatures(String... elements)
Adds elements to
features sortedSet. |
RustLibraryDescriptionArg.Builder |
addFeatures(String element)
Adds one element to
features sortedSet. |
RustLibraryDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
RustLibraryDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
RustLibraryDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
RustLibraryDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
RustLibraryDescriptionArg.Builder |
addRustcFlags(StringWithMacros... elements)
Adds elements to
rustcFlags list. |
RustLibraryDescriptionArg.Builder |
addRustcFlags(StringWithMacros element)
Adds one element to
rustcFlags list. |
RustLibraryDescriptionArg.Builder |
addSrcs(SourcePath... elements)
Adds elements to
srcs sortedSet. |
RustLibraryDescriptionArg.Builder |
addSrcs(SourcePath element)
Adds one element to
srcs sortedSet. |
RustLibraryDescriptionArg.Builder |
addTests(BuildTarget... elements)
Adds elements to
tests sortedSet. |
RustLibraryDescriptionArg.Builder |
addTests(BuildTarget element)
Adds one element to
tests sortedSet. |
RustLibraryDescriptionArg |
build()
Builds a new
RustLibraryDescriptionArg . |
RustLibraryDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
RustLibraryDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
RustLibraryDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
RustLibraryDescriptionArg.Builder |
from(HasDefaultPlatform instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDefaultPlatform instance. |
RustLibraryDescriptionArg.Builder |
from(HasNamedDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.features.rust.HasNamedDeclaredDeps instance. |
RustLibraryDescriptionArg.Builder |
from(HasSrcs instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasSrcs instance. |
RustLibraryDescriptionArg.Builder |
from(HasTests instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasTests instance. |
RustLibraryDescriptionArg.Builder |
from(RustCommonArgs instance)
Fill a builder with attribute values from the provided
com.facebook.buck.features.rust.RustCommonArgs instance. |
RustLibraryDescriptionArg.Builder |
from(com.facebook.buck.features.rust.RustLibraryDescription.AbstractRustLibraryDescriptionArg instance)
Copy abstract value type
AbstractRustLibraryDescriptionArg instance into builder. |
RustLibraryDescriptionArg.Builder |
from(RustLibraryDescriptionArg instance)
Fill a builder with attribute values from the provided
RustLibraryDescriptionArg instance. |
RustLibraryDescriptionArg.Builder |
putAllEnv(Map<String,? extends StringWithMacros> entries)
Put all mappings from the specified map as entries to
env map. |
RustLibraryDescriptionArg.Builder |
putAllMappedSrcs(Map<? extends SourcePath,? extends String> entries)
Put all mappings from the specified map as entries to
mappedSrcs map. |
RustLibraryDescriptionArg.Builder |
putAllNamedDeps(Map<String,? extends BuildTarget> entries)
Put all mappings from the specified map as entries to
namedDeps map. |
RustLibraryDescriptionArg.Builder |
putEnv(Map.Entry<String,? extends StringWithMacros> entry)
Put one entry to the
env map. |
RustLibraryDescriptionArg.Builder |
putEnv(String key,
StringWithMacros value)
Put one entry to the
env map. |
RustLibraryDescriptionArg.Builder |
putMappedSrcs(Map.Entry<? extends SourcePath,? extends String> entry)
Put one entry to the
mappedSrcs map. |
RustLibraryDescriptionArg.Builder |
putMappedSrcs(SourcePath key,
String value)
Put one entry to the
mappedSrcs map. |
RustLibraryDescriptionArg.Builder |
putNamedDeps(Map.Entry<String,? extends BuildTarget> entry)
Put one entry to the
namedDeps map. |
RustLibraryDescriptionArg.Builder |
putNamedDeps(String key,
BuildTarget value)
Put one entry to the
namedDeps map. |
RustLibraryDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
RustLibraryDescriptionArg.Builder |
setCrate(Optional<String> crate)
Initializes the optional value
crate to crate. |
RustLibraryDescriptionArg.Builder |
setCrate(String crate)
Initializes the optional value
crate to crate. |
RustLibraryDescriptionArg.Builder |
setCrateRoot(Optional<String> crateRoot)
Initializes the optional value
crateRoot to crateRoot. |
RustLibraryDescriptionArg.Builder |
setCrateRoot(String crateRoot)
Initializes the optional value
crateRoot to crateRoot. |
RustLibraryDescriptionArg.Builder |
setDefaultPlatform(Flavor defaultPlatform)
Initializes the optional value
defaultPlatform to defaultPlatform. |
RustLibraryDescriptionArg.Builder |
setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
Initializes the optional value
defaultPlatform to defaultPlatform. |
RustLibraryDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
RustLibraryDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
RustLibraryDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
RustLibraryDescriptionArg.Builder |
setEdition(Optional<String> edition)
Initializes the optional value
edition to edition. |
RustLibraryDescriptionArg.Builder |
setEdition(String edition)
Initializes the optional value
edition to edition. |
RustLibraryDescriptionArg.Builder |
setEnv(Map<String,? extends StringWithMacros> entries)
Sets or replaces all mappings from the specified map as entries for the
env map. |
RustLibraryDescriptionArg.Builder |
setFeatures(Iterable<String> elements)
Sets or replaces all elements for
features sortedSet. |
RustLibraryDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
RustLibraryDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
RustLibraryDescriptionArg.Builder |
setMappedSrcs(Map<? extends SourcePath,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
mappedSrcs map. |
RustLibraryDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
RustLibraryDescriptionArg.Builder |
setNamedDeps(Map<String,? extends BuildTarget> entries)
Sets or replaces all mappings from the specified map as entries for the
namedDeps map. |
RustLibraryDescriptionArg.Builder |
setPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
Initializes the value for the
platformDeps attribute. |
RustLibraryDescriptionArg.Builder |
setPreferredLinkage(NativeLinkableGroup.Linkage preferredLinkage)
Initializes the value for the
preferredLinkage attribute. |
RustLibraryDescriptionArg.Builder |
setProcMacro(boolean procMacro)
Initializes the value for the
procMacro attribute. |
RustLibraryDescriptionArg.Builder |
setRustcFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements for
rustcFlags list. |
RustLibraryDescriptionArg.Builder |
setSrcs(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
srcs sortedSet. |
RustLibraryDescriptionArg.Builder |
setTests(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
tests sortedSet. |
public final RustLibraryDescriptionArg.Builder from(HasNamedDeclaredDeps instance)
com.facebook.buck.features.rust.HasNamedDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(HasDeclaredDeps instance)
com.facebook.buck.core.description.arg.HasDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(HasTests instance)
com.facebook.buck.core.description.arg.HasTests
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(HasDefaultPlatform instance)
com.facebook.buck.core.description.arg.HasDefaultPlatform
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(RustCommonArgs instance)
com.facebook.buck.features.rust.RustCommonArgs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(BuildRuleArg instance)
com.facebook.buck.core.description.arg.BuildRuleArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(HasSrcs instance)
com.facebook.buck.core.description.arg.HasSrcs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(ConstructorArg instance)
com.facebook.buck.core.description.arg.ConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(RustLibraryDescriptionArg instance)
RustLibraryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder from(com.facebook.buck.features.rust.RustLibraryDescription.AbstractRustLibraryDescriptionArg instance)
AbstractRustLibraryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setPreferredLinkage(NativeLinkableGroup.Linkage preferredLinkage)
preferredLinkage
attribute.
If not set, this attribute will have a default value as returned by the initializer of preferredLinkage
.
preferredLinkage
- The value for preferredLinkagethis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setProcMacro(boolean procMacro)
procMacro
attribute.
If not set, this attribute will have a default value as returned by the initializer of procMacro
.
procMacro
- The value for procMacrothis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putMappedSrcs(SourcePath key, String value)
mappedSrcs
map.key
- The key in the mappedSrcs mapvalue
- The associated value in the mappedSrcs mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putMappedSrcs(Map.Entry<? extends SourcePath,? extends String> entry)
mappedSrcs
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setMappedSrcs(Map<? extends SourcePath,? extends String> entries)
mappedSrcs
map. Nulls are not permittedentries
- The entries that will be added to the mappedSrcs mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putAllMappedSrcs(Map<? extends SourcePath,? extends String> entries)
mappedSrcs
map. Nulls are not permittedentries
- The entries that will be added to the mappedSrcs mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putEnv(String key, StringWithMacros value)
env
map.key
- The key in the env mapvalue
- The associated value in the env mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putEnv(Map.Entry<String,? extends StringWithMacros> entry)
env
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setEnv(Map<String,? extends StringWithMacros> entries)
env
map. Nulls are not permittedentries
- The entries that will be added to the env mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putAllEnv(Map<String,? extends StringWithMacros> entries)
env
map. Nulls are not permittedentries
- The entries that will be added to the env mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setEdition(String edition)
edition
to edition.edition
- The value for editionthis
builder for chained invocationpublic final RustLibraryDescriptionArg.Builder setEdition(Optional<String> edition)
edition
to edition.edition
- The value for editionthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addFeatures(String element)
features
sortedSet.element
- A features elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addFeatures(String... elements)
features
sortedSet.elements
- An array of features elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setFeatures(Iterable<String> elements)
features
sortedSet.elements
- An iterable of features elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllFeatures(Iterable<String> elements)
features
sortedSet.elements
- An iterable of features elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addRustcFlags(StringWithMacros element)
rustcFlags
list.element
- A rustcFlags elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addRustcFlags(StringWithMacros... elements)
rustcFlags
list.elements
- An array of rustcFlags elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setRustcFlags(Iterable<? extends StringWithMacros> elements)
rustcFlags
list.elements
- An iterable of rustcFlags elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllRustcFlags(Iterable<? extends StringWithMacros> elements)
rustcFlags
list.elements
- An iterable of rustcFlags elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setCrate(String crate)
crate
to crate.crate
- The value for cratethis
builder for chained invocationpublic final RustLibraryDescriptionArg.Builder setCrate(Optional<String> crate)
crate
to crate.crate
- The value for cratethis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setCrateRoot(String crateRoot)
crateRoot
to crateRoot.crateRoot
- The value for crateRootthis
builder for chained invocationpublic final RustLibraryDescriptionArg.Builder setCrateRoot(Optional<String> crateRoot)
crateRoot
to crateRoot.crateRoot
- The value for crateRootthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
platformDeps
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformDeps
.
platformDeps
- The value for platformDepsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final RustLibraryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putNamedDeps(String key, BuildTarget value)
namedDeps
map.key
- The key in the namedDeps mapvalue
- The associated value in the namedDeps mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putNamedDeps(Map.Entry<String,? extends BuildTarget> entry)
namedDeps
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setNamedDeps(Map<String,? extends BuildTarget> entries)
namedDeps
map. Nulls are not permittedentries
- The entries that will be added to the namedDeps mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder putAllNamedDeps(Map<String,? extends BuildTarget> entries)
namedDeps
map. Nulls are not permittedentries
- The entries that will be added to the namedDeps mapthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setDefaultPlatform(Flavor defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for chained invocationpublic final RustLibraryDescriptionArg.Builder setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addTests(BuildTarget element)
tests
sortedSet.element
- A tests elementthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addTests(BuildTarget... elements)
tests
sortedSet.elements
- An array of tests elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final RustLibraryDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic RustLibraryDescriptionArg build()
RustLibraryDescriptionArg
.IllegalStateException
- if any required attributes are missing