Docs.rs
  • hooks-1.0.0-alpha.4
    • hooks 1.0.0-alpha.4
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • EqualMa
    • Dependencies
      • hooks-core ^1.0.0-alpha.1 normal
      • hooks-derive ^1.0.0-alpha.2 normal
      • pin-project-lite ^0.2.9 normal
      • smallvec ^1.10.0 normal
      • futures-lite ^1.12.0 dev
    • Versions
    • 0% of the crate is documented
  • Go to latest stable release
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Crate hooks

  • Version 1.0.0-alpha.4
  • All Items
  • Re-exports
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions
  • Type Definitions
  • Attribute Macros
?
Change settings

Crate hooks

source ·

Re-exports

pub use hooks_core as core;

Structs

Effect
EffectOnNextPoll
EffectWith
LazyPinned
Pinned data which can be lazily initialized.
LazyPinnedWith
Ref
RefWith
SharedRef
SharedState
SharedStateData
SharedStateEq
SharedStateEqData
SharedStateEqWith
SharedStateWith
StagingStates
State
StateEq
StateEqWith
StateUpdater
StateWith

Enums

NewState
NewStateFn

Constants

STAGING_STATES_DEFAULT_STACK_COUNT

Traits

EffectCleanup
EffectFor
EffectForNoneDependency
Hook
How to impl Hook
HookBounds
HookExt
HookLifetime
This is a helper trait to define lifetime generic associated types (lifetime-GAT) for Hook.
HookPollNextUpdate
HookPollNextUpdateExt
RunHook
A type implementing RunHook is a hook runner.
ShareValue
Common behaviors of types that share a value with inner mutability.

Functions

use_effect
use_effect_on_next_poll
use_effect_with
use_lazy_pinned
use_lazy_pinned_with
use_ref
use_shared_state
use_shared_state_eq
use_shared_state_eq_with
use_shared_state_with
use_state
use_state_n
use_state_n_with
use_state_n with a lazy initializer.
use_state_with
use_state with a lazy initializer.

Type Definitions

NewStateDynMutator
NewStateDynReplacer
NewStateDynReplacerMaybe

Attribute Macros

hook