pub enum HookUseKind {
UseState,
UseEffect,
UseMemo,
UseCallback,
Custom,
}Expand description
The kind of a React hook call. Custom covers any use*-named call that is
not one of the built-in hooks.
Variants§
UseState
useState(...).
UseEffect
useEffect(...).
UseMemo
useMemo(...).
UseCallback
useCallback(...).
Custom
Any other use*-named call (a custom hook).
Trait Implementations§
Source§impl Clone for HookUseKind
impl Clone for HookUseKind
impl Copy for HookUseKind
Source§impl Debug for HookUseKind
impl Debug for HookUseKind
impl<'__de> Decode<'__de> for HookUseKindwhere
'__de:,
impl Encode for HookUseKind
impl Eq for HookUseKind
Source§impl PartialEq for HookUseKind
impl PartialEq for HookUseKind
impl StructuralPartialEq for HookUseKind
Auto Trait Implementations§
impl Freeze for HookUseKind
impl RefUnwindSafe for HookUseKind
impl Send for HookUseKind
impl Sync for HookUseKind
impl Unpin for HookUseKind
impl UnsafeUnpin for HookUseKind
impl UnwindSafe for HookUseKind
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,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.