pub struct Takeover { /* private fields */ }Implementations§
Source§impl Takeover
impl Takeover
pub fn new(id: u64, title: impl Into<Cow<'static, str>>) -> Self
pub fn title_spans<T: Into<Cow<'static, str>>>( self, spans: impl IntoIterator<Item = (T, Style)>, ) -> Self
pub fn label(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn cancel(self, keys: &'static [Key]) -> Self
Trait Implementations§
impl Eq for Takeover
impl StructuralPartialEq for Takeover
Auto Trait Implementations§
impl Freeze for Takeover
impl RefUnwindSafe for Takeover
impl Send for Takeover
impl Sync for Takeover
impl Unpin for Takeover
impl UnsafeUnpin for Takeover
impl UnwindSafe for Takeover
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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