pub struct PatternPart {
pub binding: Option<Variable>,
pub element: PatternElement,
pub span: Span,
}Fields§
§binding: Option<Variable>§element: PatternElement§span: SpanTrait Implementations§
Source§impl Clone for PatternPart
impl Clone for PatternPart
Source§fn clone(&self) -> PatternPart
fn clone(&self) -> PatternPart
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PatternPart
impl RefUnwindSafe for PatternPart
impl Send for PatternPart
impl Sync for PatternPart
impl Unpin for PatternPart
impl UnsafeUnpin for PatternPart
impl UnwindSafe for PatternPart
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