pub trait Linker {
// Required methods
fn name(&self) -> &'static OsStr;
fn output(&self, cmd: &mut Command, path: &OsStr);
fn lib(&self, cmd: &mut Command, path: &OsStr);
fn path(&self, cmd: &mut Command, path: &OsStr);
// Provided methods
fn default_output(&self) -> &'static OsStr { ... }
fn preproc(&self, cmd: &mut Command) { ... }
fn obj(&self, cmd: &mut Command, path: &OsStr) { ... }
}Expand description
The Trait to Integrate Linkers
Required Methods§
Provided Methods§
Sourcefn default_output(&self) -> &'static OsStr
fn default_output(&self) -> &'static OsStr
Return the default output file.
As the default, this function returns "a.out".