pub struct Input {
pub path: String,
pub forced: Option<InputKind>,
pub library: bool,
}Expand description
One input file, with the -x setting that was in effect where it appeared.
Fields§
§path: StringThe path as it was written on the command line, or the name of a -l library.
forced: Option<InputKind>The language forced by an earlier -x, if any. -x none clears it.
library: boolWhether this came from -l<name> rather than being a path.
A library is an input to the link and is held here rather than beside the other link flags, because where it falls among the objects is what decides whether it is searched for what they left undefined. A list of objects and a separate list of libraries would lose exactly that.
Implementations§
Trait Implementations§
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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<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
Compare self to
key and return true if they are equal.