pub struct FeatureAndArgs {
pub feature: Feature,
pub raw_args: Option<String>,
}
Expand description
A feature together with any arguments that go along with it, if specified.
Fields§
§feature: Feature
The feature.
raw_args: Option<String>
If specified, the (unparsed) arguments for the feature.
Implementations§
Source§impl FeatureAndArgs
impl FeatureAndArgs
Sourcepub fn try_parse(s: &str) -> Result<FeatureAndArgs, UnsupportedFeatureError>
pub fn try_parse(s: &str) -> Result<FeatureAndArgs, UnsupportedFeatureError>
Parses a feature and args from a string that separates them with :
, e.g. “bpf:v2”.
If there is no :
then the whole string is interpreted as the feature name.
Trait Implementations§
Source§impl Clone for FeatureAndArgs
impl Clone for FeatureAndArgs
Source§fn clone(&self) -> FeatureAndArgs
fn clone(&self) -> FeatureAndArgs
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 FeatureAndArgs
impl Debug for FeatureAndArgs
Source§impl Display for FeatureAndArgs
impl Display for FeatureAndArgs
Source§impl PartialEq for FeatureAndArgs
impl PartialEq for FeatureAndArgs
impl StructuralPartialEq for FeatureAndArgs
Auto Trait Implementations§
impl Freeze for FeatureAndArgs
impl RefUnwindSafe for FeatureAndArgs
impl Send for FeatureAndArgs
impl Sync for FeatureAndArgs
impl Unpin for FeatureAndArgs
impl UnwindSafe for FeatureAndArgs
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