pub struct TextBoxData<CpEvent = NoEvent, CpState = ()> {
pub text: String,
pub flex: FlexParams,
pub _markers: PhantomData<(CpEvent, CpState)>,
}Fields§
§text: String§flex: FlexParams§_markers: PhantomData<(CpEvent, CpState)>Trait Implementations§
Source§impl<CpEvent, CpState> Clone for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> Clone for TextBoxData<CpEvent, CpState>
Source§impl<CpEvent, CpState> Debug for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> Debug for TextBoxData<CpEvent, CpState>
Source§impl<CpEvent, CpState> Default for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> Default for TextBoxData<CpEvent, CpState>
Source§impl<CpEvent: PartialEq, CpState: PartialEq> PartialEq for TextBoxData<CpEvent, CpState>
impl<CpEvent: PartialEq, CpState: PartialEq> PartialEq for TextBoxData<CpEvent, CpState>
Source§fn eq(&self, other: &TextBoxData<CpEvent, CpState>) -> bool
fn eq(&self, other: &TextBoxData<CpEvent, CpState>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<CpEvent, CpState> VirtualDom<CpEvent, CpState> for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> VirtualDom<CpEvent, CpState> for TextBoxData<CpEvent, CpState>
type Event = TextChanged
type AggregateChildrenState = ()
type TargetWidgetSeq = TextBoxWidget
fn init_tree(&self) -> TextBoxWidget
fn reconcile( &self, _other: &Self, widget: &mut TextBoxWidget, ctx: &mut ReconcileCtx<'_, '_, '_, '_, '_>, )
fn process_local_event( &self, _component_state: &mut CpState, _children_state: &mut Self::AggregateChildrenState, widget: &mut TextBoxWidget, cx: &mut GlobalEventCx<'_>, ) -> Option<TextChanged>
fn update_value(&mut self, other: Self)where
Self: Sized,
fn process_event( &self, component_state: &mut CpState, children_state: &mut Self::AggregateChildrenState, widget_seq: &mut Self::TargetWidgetSeq, cx: &mut GlobalEventCx<'_>, ) -> Option<CpEvent>
impl<CpEvent, CpState> StructuralPartialEq for TextBoxData<CpEvent, CpState>
Auto Trait Implementations§
impl<CpEvent, CpState> Freeze for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> RefUnwindSafe for TextBoxData<CpEvent, CpState>where
CpEvent: RefUnwindSafe,
CpState: RefUnwindSafe,
impl<CpEvent, CpState> Send for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> Sync for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> Unpin for TextBoxData<CpEvent, CpState>
impl<CpEvent, CpState> UnwindSafe for TextBoxData<CpEvent, CpState>where
CpEvent: UnwindSafe,
CpState: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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