pub enum ComponentFunctionKind {
FnDecl,
Arrow,
ForwardRefWrapper,
MemoWrapper,
}Expand description
The syntactic shape of an identified React component definition. Drives the
abstain ladder later phases apply: a forwardRef / memo wrapper whose
props come from an imported interface fallow cannot resolve must abstain
(ADR-001), not guess.
Variants§
FnDecl
A function Foo() { return <.../> } declaration.
Arrow
A const Foo = () => <.../> arrow (or function-expression) binding.
ForwardRefWrapper
A const Foo = forwardRef((props, ref) => <.../>) wrapper.
MemoWrapper
A const Foo = memo((props) => <.../>) wrapper.
Trait Implementations§
Source§impl Clone for ComponentFunctionKind
impl Clone for ComponentFunctionKind
impl Copy for ComponentFunctionKind
Source§impl Debug for ComponentFunctionKind
impl Debug for ComponentFunctionKind
impl<'__de> Decode<'__de> for ComponentFunctionKindwhere
'__de:,
impl Encode for ComponentFunctionKind
impl Eq for ComponentFunctionKind
Source§impl PartialEq for ComponentFunctionKind
impl PartialEq for ComponentFunctionKind
impl StructuralPartialEq for ComponentFunctionKind
Auto Trait Implementations§
impl Freeze for ComponentFunctionKind
impl RefUnwindSafe for ComponentFunctionKind
impl Send for ComponentFunctionKind
impl Sync for ComponentFunctionKind
impl Unpin for ComponentFunctionKind
impl UnsafeUnpin for ComponentFunctionKind
impl UnwindSafe for ComponentFunctionKind
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.