pub struct ExitConfig {
pub select_1: bool,
pub allow_empty: bool,
pub abort_empty: bool,
}Expand description
Exit conditions of the render loop.
Does not deny unknown fields.
Fields§
§select_1: boolExit automatically if there is only one match.
allow_empty: boolAllow returning without any items selected.
abort_empty: boolAbort if no items.
Trait Implementations§
Source§impl Clone for ExitConfig
impl Clone for ExitConfig
Source§fn clone(&self) -> ExitConfig
fn clone(&self) -> ExitConfig
Returns a duplicate 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 ExitConfig
impl Debug for ExitConfig
Source§impl Default for ExitConfig
impl Default for ExitConfig
Source§fn default() -> ExitConfig
fn default() -> ExitConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExitConfigwhere
ExitConfig: Default,
impl<'de> Deserialize<'de> for ExitConfigwhere
ExitConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExitConfig
impl PartialEq for ExitConfig
Source§impl Serialize for ExitConfig
impl Serialize for ExitConfig
impl StructuralPartialEq for ExitConfig
Auto Trait Implementations§
impl Freeze for ExitConfig
impl RefUnwindSafe for ExitConfig
impl Send for ExitConfig
impl Sync for ExitConfig
impl Unpin for ExitConfig
impl UnsafeUnpin for ExitConfig
impl UnwindSafe for ExitConfig
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<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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformExt for T
impl<T> TransformExt for T
fn transform<Q>(self, transform: impl FnOnce(T) -> Q) -> Q
fn modify<Q>(self, modify: impl FnOnce(&mut T) -> Q) -> T
Source§fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
Example Read more