pub enum Action<T> {
Add(T),
Delete(T),
}
Expand description
An action that adds or removes a provided/required feature.
Example:
const PROVIDED: &[Action<Provide>] = &[
add_provide(("foo", 0), "2012-02-21", (1, 2, 3)),
add_provide(("foo", 1), "2012-02-22", (1, 2, 3)),
add_provide(("bar", 1), "2012-03-21", (1, 2, 4)),
del_provide(("foo", 0), "2012-04-21", (1, 2, 5)),
];
let fs = FeatureSet::from_provides(PROVIDED);
assert_eq!("bar:v1, foo:v1", fs.to_string());
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Action<T>where
T: Freeze,
impl<T> RefUnwindSafe for Action<T>where
T: RefUnwindSafe,
impl<T> Send for Action<T>where
T: Send,
impl<T> Sync for Action<T>where
T: Sync,
impl<T> Unpin for Action<T>where
T: Unpin,
impl<T> UnwindSafe for Action<T>where
T: UnwindSafe,
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