pub enum Role {
File,
Library,
Linker,
}Expand description
What one entry of the input list was written as.
Three things share the list because all three are positional and the position is what they mean. 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. A great many of the linker’s own options are a bracket around the files after them, so an option moved away from what it brackets says nothing at all. Keeping a list of files, a list of libraries and a list of linker words apart would lose the one fact each of them depends on.
Variants§
File
A path, which is a file this command line may have something to do to.
Library
-l<name>, which the linker resolves against its search path.
Linker
One word from -Wl, or -Xlinker, handed to the linker where the user wrote it.
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.