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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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
Mutably borrows from an owned value. Read more