pub struct ObjBuildPlan {
pub args: Vec<String>,
pub output_dir: PathBuf,
pub expected_object: PathBuf,
}Expand description
What build_obj_plan returns — captured rustc args, edited so
that running rustc with them produces a single .o containing
every pub fn’s mangled symbol.
output_dir is the directory rustc will write the object into;
the actual filename rustc emits is <crate_name>.o (with the
usual hyphen → underscore translation). expected_object is the
absolute path the runner should expect to see after the call.
Fields§
§args: Vec<String>§output_dir: PathBuf§expected_object: PathBufTrait Implementations§
Source§impl Clone for ObjBuildPlan
impl Clone for ObjBuildPlan
Source§fn clone(&self) -> ObjBuildPlan
fn clone(&self) -> ObjBuildPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjBuildPlan
impl Debug for ObjBuildPlan
impl Eq for ObjBuildPlan
Source§impl PartialEq for ObjBuildPlan
impl PartialEq for ObjBuildPlan
Source§fn eq(&self, other: &ObjBuildPlan) -> bool
fn eq(&self, other: &ObjBuildPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObjBuildPlan
Auto Trait Implementations§
impl Freeze for ObjBuildPlan
impl RefUnwindSafe for ObjBuildPlan
impl Send for ObjBuildPlan
impl Sync for ObjBuildPlan
impl Unpin for ObjBuildPlan
impl UnsafeUnpin for ObjBuildPlan
impl UnwindSafe for ObjBuildPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.