pub struct Feature { /* private fields */ }Implementations§
Source§impl Feature
impl Feature
pub fn new<T: Into<FeatureValue>>( kind: FeatureKind, target: Option<T>, min: Option<T>, max: Option<T>, ) -> Self
pub fn target<T: Into<FeatureValue>>(kind: FeatureKind, target: T) -> Self
pub fn min<T: Into<FeatureValue>>(kind: FeatureKind, min: T) -> Self
pub fn max<T: Into<FeatureValue>>(kind: FeatureKind, max: T) -> Self
pub fn exact<T: Into<FeatureValue>>(kind: FeatureKind, value: T) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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