Struct target_spec::TargetExpression
source · pub struct TargetExpression { /* private fields */ }Expand description
A target expression.
Parsed from a string beginning with cfg(.
Implementations§
source§impl TargetExpression
impl TargetExpression
sourcepub fn new(input: &str) -> Result<Self, Error>
pub fn new(input: &str) -> Result<Self, Error>
Creates a new TargetExpression from a string beginning with cfg(.
Returns an error if the string could not be parsed, or if the string contains a predicate
that wasn’t understood by target-spec.
sourcepub fn expression_str(&self) -> &str
pub fn expression_str(&self) -> &str
Returns the string that was parsed into self.
Trait Implementations§
source§impl Clone for TargetExpression
impl Clone for TargetExpression
source§fn clone(&self) -> TargetExpression
fn clone(&self) -> TargetExpression
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 more