pub enum OutputSpec {
All,
Named(BTreeSet<OutputName>),
}Expand description
An output selection spec.
This is either all outputs (formatted as ‘*’ when displaying or parsing) or
a set of OutputName with the outputs that is to be selected.
This is used in super::DerivedPath to perform selection of the outputs to make
sure, while building, are valid or substituted.
Variants§
All
Named(BTreeSet<OutputName>)
Implementations§
Source§impl OutputSpec
impl OutputSpec
pub fn single(output_name: OutputName) -> Self
Trait Implementations§
Source§impl Clone for OutputSpec
impl Clone for OutputSpec
Source§fn clone(&self) -> OutputSpec
fn clone(&self) -> OutputSpec
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 OutputSpec
impl Debug for OutputSpec
Source§impl<'de> Deserialize<'de> for OutputSpec
impl<'de> Deserialize<'de> for OutputSpec
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OutputSpec
impl Display for OutputSpec
Source§impl From<OutputName> for OutputSpec
impl From<OutputName> for OutputSpec
Source§fn from(output_name: OutputName) -> Self
fn from(output_name: OutputName) -> Self
Converts to this type from the input type.
Source§impl FromStr for OutputSpec
impl FromStr for OutputSpec
Source§impl Hash for OutputSpec
impl Hash for OutputSpec
Source§impl Ord for OutputSpec
impl Ord for OutputSpec
Source§fn cmp(&self, other: &OutputSpec) -> Ordering
fn cmp(&self, other: &OutputSpec) -> Ordering
1.21.0 (const: unstable) · 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 OutputSpec
impl PartialEq for OutputSpec
Source§fn eq(&self, other: &OutputSpec) -> bool
fn eq(&self, other: &OutputSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OutputSpec
impl PartialOrd for OutputSpec
Source§impl Serialize for OutputSpecwhere
Self: Display,
impl Serialize for OutputSpecwhere
Self: Display,
impl Eq for OutputSpec
impl StructuralPartialEq for OutputSpec
Auto Trait Implementations§
impl Freeze for OutputSpec
impl RefUnwindSafe for OutputSpec
impl Send for OutputSpec
impl Sync for OutputSpec
impl Unpin for OutputSpec
impl UnsafeUnpin for OutputSpec
impl UnwindSafe for OutputSpec
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> Comparable<K> for Q
impl<Q, K> Comparable<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.