pub enum CaseBinding {
Field(Ident),
Renamed(Ident, Ident),
}
Expand description
A case binding is a field or a rename of some field inside a match expression.
Variants§
Trait Implementations§
Source§impl Clone for CaseBinding
impl Clone for CaseBinding
Source§fn clone(&self) -> CaseBinding
fn clone(&self) -> CaseBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CaseBinding
impl Debug for CaseBinding
Source§impl Display for CaseBinding
impl Display for CaseBinding
Auto Trait Implementations§
impl Freeze for CaseBinding
impl RefUnwindSafe for CaseBinding
impl Send for CaseBinding
impl Sync for CaseBinding
impl Unpin for CaseBinding
impl UnwindSafe for CaseBinding
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