pub struct FileType {
pub flavor: FileFlavor,
pub crate_type: Option<CrateType>,
/* private fields */
}
Expand description
Type of each file generated by a Unit.
Fields§
§flavor: FileFlavor
The kind of file.
crate_type: Option<CrateType>
The crate-type that generates this file.
None
for things that aren’t associated with a specific crate type,
for example rmeta
files.
Implementations§
source§impl FileType
impl FileType
sourcepub fn output_filename(&self, target: &Target, metadata: Option<&str>) -> String
pub fn output_filename(&self, target: &Target, metadata: Option<&str>) -> String
The filename for this FileType crated by rustc.
sourcepub fn uplift_filename(&self, target: &Target) -> String
pub fn uplift_filename(&self, target: &Target) -> String
The filename for this FileType that Cargo should use when “uplifting” it to the destination directory.