pub struct ReceiverParameter {
pub annotations: Vec<Annotation>,
pub ty: Type,
pub name: Option<Ident>,
pub dot_span: Option<Span>,
pub this_span: Span,
}Expand description
A receiver parameter: Type [name.] this.
Fields§
§annotations: Vec<Annotation>§ty: Type§name: Option<Ident>§dot_span: Option<Span>§this_span: SpanTrait Implementations§
Source§impl Clone for ReceiverParameter
impl Clone for ReceiverParameter
Source§fn clone(&self) -> ReceiverParameter
fn clone(&self) -> ReceiverParameter
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 ReceiverParameter
impl Debug for ReceiverParameter
Source§impl Hash for ReceiverParameter
impl Hash for ReceiverParameter
Source§impl PartialEq for ReceiverParameter
impl PartialEq for ReceiverParameter
Source§fn eq(&self, other: &ReceiverParameter) -> bool
fn eq(&self, other: &ReceiverParameter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReceiverParameter
impl StructuralPartialEq for ReceiverParameter
Auto Trait Implementations§
impl Freeze for ReceiverParameter
impl RefUnwindSafe for ReceiverParameter
impl Send for ReceiverParameter
impl Sync for ReceiverParameter
impl Unpin for ReceiverParameter
impl UnsafeUnpin for ReceiverParameter
impl UnwindSafe for ReceiverParameter
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