#[non_exhaustive]pub enum PirReceiver {
Class(String),
Expression {
kind: &'static str,
},
Dynamic,
}Expand description
Receiver of a PIR method-call operation.
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.
Class(String)
A bareword class receiver such as Foo->new.
Expression
An expression receiver; the field records the parser AST kind.
Dynamic
A dynamic receiver; see the node’s dynamic boundary.
Trait Implementations§
Source§impl Clone for PirReceiver
impl Clone for PirReceiver
Source§fn clone(&self) -> PirReceiver
fn clone(&self) -> PirReceiver
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 moreSource§impl Debug for PirReceiver
impl Debug for PirReceiver
impl Eq for PirReceiver
Source§impl PartialEq for PirReceiver
impl PartialEq for PirReceiver
Source§fn eq(&self, other: &PirReceiver) -> bool
fn eq(&self, other: &PirReceiver) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PirReceiver
Auto Trait Implementations§
impl Freeze for PirReceiver
impl RefUnwindSafe for PirReceiver
impl Send for PirReceiver
impl Sync for PirReceiver
impl Unpin for PirReceiver
impl UnsafeUnpin for PirReceiver
impl UnwindSafe for PirReceiver
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