Struct target_spec::TargetExpression
source · [−]pub struct TargetExpression { /* private fields */ }Expand description
A target expression.
Parsed from a string beginning with cfg(.
Implementations
sourceimpl 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
sourceimpl Clone for TargetExpression
impl Clone for TargetExpression
sourcefn clone(&self) -> TargetExpression
fn clone(&self) -> TargetExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TargetExpression
impl Debug for TargetExpression
Auto Trait Implementations
impl RefUnwindSafe for TargetExpression
impl Send for TargetExpression
impl Sync for TargetExpression
impl Unpin for TargetExpression
impl UnwindSafe for TargetExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more