pub struct LinkerResolution {
pub linker_path: PathBuf,
pub linker_args: Vec<String>,
pub env: BTreeMap<String, String>,
pub cargo_config: Option<Table>,
pub notes: Vec<String>,
pub flavor: LinkerFlavor,
}Expand description
Resolution result from a linker provider.
Fields§
§linker_path: PathBuf§linker_args: Vec<String>§env: BTreeMap<String, String>§cargo_config: Option<Table>§notes: Vec<String>§flavor: LinkerFlavorImplementations§
Source§impl LinkerResolution
impl LinkerResolution
pub fn new(linker_path: PathBuf, flavor: LinkerFlavor) -> Self
pub fn with_args(self, args: Vec<String>) -> Self
pub fn with_env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn with_cargo_config(self, config: Table) -> Self
pub fn with_note(self, note: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for LinkerResolution
impl Clone for LinkerResolution
Source§impl Debug for LinkerResolution
impl Debug for LinkerResolution
Source§impl PartialEq for LinkerResolution
impl PartialEq for LinkerResolution
impl StructuralPartialEq for LinkerResolution
Auto Trait Implementations§
impl Freeze for LinkerResolution
impl RefUnwindSafe for LinkerResolution
impl Send for LinkerResolution
impl Sync for LinkerResolution
impl Unpin for LinkerResolution
impl UnsafeUnpin for LinkerResolution
impl UnwindSafe for LinkerResolution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more