#[non_exhaustive]pub enum ReceiverKind {
FreeFunction,
Namespace,
Instance,
}Expand description
Receiver shape for a source API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FreeFunction
No receiver, such as fetch(url).
Namespace
Static namespace receiver, such as JSON.parse.
Instance
Instance receiver, such as new RegExp(pattern).test(text).
Trait Implementations§
Source§impl Clone for ReceiverKind
impl Clone for ReceiverKind
Source§fn clone(&self) -> ReceiverKind
fn clone(&self) -> ReceiverKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReceiverKind
Source§impl Debug for ReceiverKind
impl Debug for ReceiverKind
impl Eq for ReceiverKind
Source§impl PartialEq for ReceiverKind
impl PartialEq for ReceiverKind
Source§fn eq(&self, other: &ReceiverKind) -> bool
fn eq(&self, other: &ReceiverKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReceiverKind
Auto Trait Implementations§
impl Freeze for ReceiverKind
impl RefUnwindSafe for ReceiverKind
impl Send for ReceiverKind
impl Sync for ReceiverKind
impl Unpin for ReceiverKind
impl UnsafeUnpin for ReceiverKind
impl UnwindSafe for ReceiverKind
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