#[non_exhaustive]pub struct FeatureValue { /* private fields */ }
Expand description
The value associated with a feature.
Implementations
sourceimpl FeatureValue
impl FeatureValue
sourcepub fn feature_name(&self) -> Option<&str>
pub fn feature_name(&self) -> Option<&str>
The name of a feature that a feature value corresponds to.
sourcepub fn value_as_string(&self) -> Option<&str>
pub fn value_as_string(&self) -> Option<&str>
The value associated with a feature, in string format. Note that features types can be String, Integral, or Fractional. This value represents all three types as a string.
sourceimpl FeatureValue
impl FeatureValue
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture FeatureValue
.
Trait Implementations
sourceimpl Clone for FeatureValue
impl Clone for FeatureValue
sourcefn clone(&self) -> FeatureValue
fn clone(&self) -> FeatureValue
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 FeatureValue
impl Debug for FeatureValue
sourceimpl PartialEq<FeatureValue> for FeatureValue
impl PartialEq<FeatureValue> for FeatureValue
sourcefn eq(&self, other: &FeatureValue) -> bool
fn eq(&self, other: &FeatureValue) -> bool
impl StructuralPartialEq for FeatureValue
Auto Trait Implementations
impl RefUnwindSafe for FeatureValue
impl Send for FeatureValue
impl Sync for FeatureValue
impl Unpin for FeatureValue
impl UnwindSafe for FeatureValue
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