pub enum BatchAction {
Edit,
Link,
Unlink,
Archive,
}Expand description
Which batch action a modal is for.
Not cli::BulkAction. That enum carries every flag as struct fields — the
flags are the clap surface, and the modal is the flags. Storing it would put
each flag in two places and let them disagree, which is the T032 prohibition
(“reject TUI-local patch construction”) in a different guise. Four words, and the
From impl is the only conversion.
Variants§
Implementations§
Source§impl BatchAction
impl BatchAction
Sourcepub fn takes_fields(self) -> bool
pub fn takes_fields(self) -> bool
Whether this action takes field flags, as opposed to a target and a kind.
Trait Implementations§
Source§impl Clone for BatchAction
impl Clone for BatchAction
impl Copy for BatchAction
Source§impl Debug for BatchAction
impl Debug for BatchAction
impl Eq for BatchAction
Source§impl From<&BulkAction> for BatchAction
impl From<&BulkAction> for BatchAction
Source§fn from(action: &BulkAction) -> Self
fn from(action: &BulkAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatchAction
impl PartialEq for BatchAction
impl StructuralPartialEq for BatchAction
Auto Trait Implementations§
impl Freeze for BatchAction
impl RefUnwindSafe for BatchAction
impl Send for BatchAction
impl Sync for BatchAction
impl Unpin for BatchAction
impl UnsafeUnpin for BatchAction
impl UnwindSafe for BatchAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more