pub struct EmptyScripts<'a> { /* private fields */ }Expand description
Empty state widget when no scripts are available.
Implementations§
Source§impl<'a> EmptyScripts<'a>
impl<'a> EmptyScripts<'a>
Sourcepub fn with_hint(message: &'a str, hint: &'a str, theme: &'a Theme) -> Self
pub fn with_hint(message: &'a str, hint: &'a str, theme: &'a Theme) -> Self
Create a new empty scripts widget with a hint.
Sourcepub fn no_scripts(theme: &'a Theme) -> Self
pub fn no_scripts(theme: &'a Theme) -> Self
Create for no scripts found.
Sourcepub fn no_matches(theme: &'a Theme) -> Self
pub fn no_matches(theme: &'a Theme) -> Self
Create for no filter matches.
Sourcepub fn no_matches_for(filter: &str, theme: &'a Theme) -> Self
pub fn no_matches_for(filter: &str, theme: &'a Theme) -> Self
Create for filter with specific query that has no matches.
Sourcepub fn all_excluded(theme: &'a Theme) -> Self
pub fn all_excluded(theme: &'a Theme) -> Self
Create for all scripts excluded.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EmptyScripts<'a>
impl<'a> RefUnwindSafe for EmptyScripts<'a>
impl<'a> Send for EmptyScripts<'a>
impl<'a> Sync for EmptyScripts<'a>
impl<'a> Unpin for EmptyScripts<'a>
impl<'a> UnwindSafe for EmptyScripts<'a>
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> 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