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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more