pub struct StructFieldPattern {
pub name: EcoString,
pub name_span: Span,
pub value: Pattern,
}Fields§
§name: EcoString§name_span: Span§value: PatternImplementations§
Source§impl StructFieldPattern
impl StructFieldPattern
Sourcepub fn is_shorthand(&self) -> bool
pub fn is_shorthand(&self) -> bool
Whether this field binds its own name without a separate value pattern.
Trait Implementations§
Source§impl Clone for StructFieldPattern
impl Clone for StructFieldPattern
Source§impl Debug for StructFieldPattern
impl Debug for StructFieldPattern
Source§impl PartialEq for StructFieldPattern
impl PartialEq for StructFieldPattern
impl StructuralPartialEq for StructFieldPattern
Auto Trait Implementations§
impl Forget for StructFieldPattern
impl Freeze for StructFieldPattern
impl Move for StructFieldPattern
impl RefUnwindSafe for StructFieldPattern
impl Send for StructFieldPattern
impl Sync for StructFieldPattern
impl Unpin for StructFieldPattern
impl UnsafeUnpin for StructFieldPattern
impl UnwindSafe for StructFieldPattern
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