pub struct Scope<'a> { /* private fields */ }Implementations§
Source§impl<'a> Scope<'a>
impl<'a> Scope<'a>
pub fn use_state<T, F>(&mut self, init: F) -> (T, StateHandle<T>)
pub fn use_effect<D, F>(&mut self, deps: D, effect: F)
pub fn provide_context<T>(&mut self, value: T) -> ContextGuard<'_>
pub fn use_context<T>(&self) -> Option<Arc<T>>
pub fn use_memo<T, D, F>(&mut self, deps: D, compute: F) -> Arc<T>
pub fn use_callback<T, D, F>(&mut self, deps: D, factory: F) -> Arc<T>
pub fn use_reducer<S, A, Init, R>( &mut self, init: Init, reducer: R, ) -> (S, ReducerDispatch<S, A>)
pub fn use_ref<T, Init>(&mut self, init: Init) -> RefHandle<T>
pub fn use_text_input<F>( &mut self, id: impl Into<String>, init: F, ) -> TextInputHandle
pub fn use_text_input_validation<F>( &mut self, handle: &TextInputHandle, validator: F, ) -> FormFieldStatus
pub fn dispatcher(&self) -> &Dispatcher
pub fn styles(&self) -> &Stylesheet
Auto Trait Implementations§
impl<'a> Freeze for Scope<'a>
impl<'a> !RefUnwindSafe for Scope<'a>
impl<'a> Send for Scope<'a>
impl<'a> Sync for Scope<'a>
impl<'a> Unpin for Scope<'a>
impl<'a> !UnwindSafe for Scope<'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> 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