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 moresource§impl 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§
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