pub struct PatReference {
pub attrs: Vec<Attribute>,
pub and_token: And,
pub mutability: Option<Mut>,
pub pat: Box<Pat>,
}Expand description
A reference pattern: &mut var.
Fields§
§attrs: Vec<Attribute>§and_token: And§mutability: Option<Mut>§pat: Box<Pat>Trait Implementations§
Source§impl From<PatReference> for Pat
impl From<PatReference> for Pat
Source§fn from(e: PatReference) -> Pat
fn from(e: PatReference) -> Pat
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PatReference
impl RefUnwindSafe for PatReference
impl !Send for PatReference
impl !Sync for PatReference
impl Unpin for PatReference
impl UnwindSafe for PatReference
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