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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more