pub struct CrateShape {
pub cargo_toml: Option<String>,
pub cargo_lock: bool,
pub main_rs: bool,
}Expand description
The structural facts of the target’s crate that the seeded Nix package expression and the seed flake’s smoke check rely on.
Fields§
§cargo_toml: Option<String>The text of the target’s Cargo.toml, or None where none reads.
cargo_lock: boolWhether Cargo.lock is a file at the target.
main_rs: boolWhether src/main.rs is a file at the target.
Trait Implementations§
Source§impl Clone for CrateShape
impl Clone for CrateShape
Source§fn clone(&self) -> CrateShape
fn clone(&self) -> CrateShape
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 CrateShape
impl Debug for CrateShape
Source§impl Default for CrateShape
impl Default for CrateShape
Source§fn default() -> CrateShape
fn default() -> CrateShape
Returns the “default value” for a type. Read more
impl Eq for CrateShape
Source§impl PartialEq for CrateShape
impl PartialEq for CrateShape
impl StructuralPartialEq for CrateShape
Auto Trait Implementations§
impl Freeze for CrateShape
impl RefUnwindSafe for CrateShape
impl Send for CrateShape
impl Sync for CrateShape
impl Unpin for CrateShape
impl UnsafeUnpin for CrateShape
impl UnwindSafe for CrateShape
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.