#[non_exhaustive]pub struct Words {
pub help: Cow<'static, str>,
pub again: Cow<'static, str>,
pub yes: Cow<'static, str>,
pub no: Cow<'static, str>,
pub choose: Cow<'static, str>,
pub leave: Cow<'static, str>,
pub too_small: Cow<'static, str>,
pub waiting: Cow<'static, str>,
pub busy: Arc<dyn Fn(usize) -> String + Send + Sync>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.help: Cow<'static, str>§again: Cow<'static, str>§yes: Cow<'static, str>§no: Cow<'static, str>§choose: Cow<'static, str>§leave: Cow<'static, str>§too_small: Cow<'static, str>§waiting: Cow<'static, str>§busy: Arc<dyn Fn(usize) -> String + Send + Sync>Implementations§
Source§impl Words
impl Words
pub fn new() -> Self
pub fn help(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn again(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn yes(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn no(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn choose(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn leave(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn too_small(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn waiting(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn busy( self, words: impl Fn(usize) -> String + Send + Sync + 'static, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Words
impl !UnwindSafe for Words
impl Freeze for Words
impl Send for Words
impl Sync for Words
impl Unpin for Words
impl UnsafeUnpin for Words
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 more