#[non_exhaustive]pub struct SourceOptions { /* private fields */ }Expand description
Options that change Cargo source discovery.
Implementations§
Source§impl SourceOptions
impl SourceOptions
Sourcepub const fn includes_dev_targets(self) -> bool
pub const fn includes_dev_targets(self) -> bool
Returns whether Cargo test, example, and benchmark targets are included.
Sourcepub const fn with_dev_targets(self, include: bool) -> Self
pub const fn with_dev_targets(self, include: bool) -> Self
Controls whether Cargo test, example, and benchmark targets are included.
Trait Implementations§
Source§impl Clone for SourceOptions
impl Clone for SourceOptions
Source§fn clone(&self) -> SourceOptions
fn clone(&self) -> SourceOptions
Returns a copy of the value. Read more
1.0.0 · 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 SourceOptions
impl Debug for SourceOptions
Source§impl Default for SourceOptions
impl Default for SourceOptions
Source§fn default() -> SourceOptions
fn default() -> SourceOptions
Returns the “default value” for a type. Read more
Source§impl Hash for SourceOptions
impl Hash for SourceOptions
Source§impl Ord for SourceOptions
impl Ord for SourceOptions
Source§fn cmp(&self, other: &SourceOptions) -> Ordering
fn cmp(&self, other: &SourceOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceOptions
impl PartialEq for SourceOptions
Source§impl PartialOrd for SourceOptions
impl PartialOrd for SourceOptions
impl Copy for SourceOptions
impl Eq for SourceOptions
impl StructuralPartialEq for SourceOptions
Auto Trait Implementations§
impl Freeze for SourceOptions
impl RefUnwindSafe for SourceOptions
impl Send for SourceOptions
impl Sync for SourceOptions
impl Unpin for SourceOptions
impl UnwindSafe for SourceOptions
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.