Struct scl_gui_widgets::widgets::OnChange
source · pub struct OnChange<T>(_);
Expand description
一个控制器,当数据流发生更新时触发回调
推荐使用 crate::widget_ext::WidgetExt::on_change
来创建本控制器于一个组件上
Implementations§
Trait Implementations§
source§impl<T: Data, W: Widget<T>> Controller<T, W> for OnChange<T>
impl<T: Data, W: Widget<T>> Controller<T, W> for OnChange<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for OnChange<T>
impl<T> !Send for OnChange<T>
impl<T> !Sync for OnChange<T>
impl<T> Unpin for OnChange<T>
impl<T> !UnwindSafe for OnChange<T>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.