pub enum Item {
File(PathBuf),
Library(String),
}Expand description
One input to the link, in the position the user wrote it.
Link order is semantic: an archive is searched for what is undefined at the moment the linker reaches it, so a library named before the object that needs it contributes nothing. That is why this is one ordered list rather than a list of objects and a list of libraries, which is a shape that cannot represent what the user typed.
Variants§
File(PathBuf)
A file, which is an object this compilation produced or one named on the command line.
Library(String)
-l<name>, which the linker resolves against the search path.
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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