pub struct Hooks<'a, 'b: 'a> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl UseAsyncState for Hooks<'_, '_>
impl UseAsyncState for Hooks<'_, '_>
Source§impl<'a> UseContext<'a> for Hooks<'a, '_>
impl<'a> UseContext<'a> for Hooks<'a, '_>
Source§impl UseEventHandler for Hooks<'_, '_>
impl UseEventHandler for Hooks<'_, '_>
fn use_event_handler<F>( &mut self, scope: EventScope, priority: EventPriority, f: F, )
fn use_event_handler_with_options<F>( &mut self, scope: EventScope, priority: EventPriority, options: EventOptions, f: F, )
Source§impl UseInputLayer for Hooks<'_, '_>
impl UseInputLayer for Hooks<'_, '_>
fn use_input_layer(&mut self, open: bool, blocks_lower: bool) -> InputLayer
Source§impl UseInsertBefore for Hooks<'_, '_>
impl UseInsertBefore for Hooks<'_, '_>
fn use_insert_before(&mut self) -> InsertBeforeHandler
Source§impl UseOnDrop for Hooks<'_, '_>
impl UseOnDrop for Hooks<'_, '_>
fn use_on_drop<F>(&mut self, f: F)where
F: FnMut() + 'static,
Source§impl UsePreviousSize for Hooks<'_, '_>
impl UsePreviousSize for Hooks<'_, '_>
fn use_previous_size(&mut self) -> Rect
Source§impl UseTerminalSize for Hooks<'_, '_>
impl UseTerminalSize for Hooks<'_, '_>
fn use_terminal_size(&mut self) -> (u16, u16)
Source§impl UseTheme for Hooks<'_, '_>
impl UseTheme for Hooks<'_, '_>
Source§fn use_palette(&self) -> Palette
fn use_palette(&self) -> Palette
Source§fn use_component_theme<T: ComponentTheme>(&self) -> T
fn use_component_theme<T: ComponentTheme>(&self) -> T
按解析链读取某组件主题:显式 override context →
from_palette → default。Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for Hooks<'a, 'b>
impl<'a, 'b> !Send for Hooks<'a, 'b>
impl<'a, 'b> !Sync for Hooks<'a, 'b>
impl<'a, 'b> !UnwindSafe for Hooks<'a, 'b>
impl<'a, 'b> Freeze for Hooks<'a, 'b>
impl<'a, 'b> Unpin for Hooks<'a, 'b>
impl<'a, 'b> UnsafeUnpin for Hooks<'a, 'b>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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