pub enum RecordForm {
Type,
Record,
Update,
Pattern,
}Expand description
Which of the four record forms a Error::RepeatedLabel was found in.
Variants§
Type
A record type, { label : Type, … }.
Record
A record, { label = expr, … }.
Update
An update, { expr | label = expr, … }.
Pattern
A record pattern, { label = pattern, … }, the { label } shorthand included.
Trait Implementations§
Source§impl Clone for RecordForm
impl Clone for RecordForm
Source§fn clone(&self) -> RecordForm
fn clone(&self) -> RecordForm
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 moreimpl Copy for RecordForm
Source§impl Debug for RecordForm
impl Debug for RecordForm
Source§impl PartialEq for RecordForm
impl PartialEq for RecordForm
impl StructuralPartialEq for RecordForm
Auto Trait Implementations§
impl Freeze for RecordForm
impl RefUnwindSafe for RecordForm
impl Send for RecordForm
impl Sync for RecordForm
impl Unpin for RecordForm
impl UnsafeUnpin for RecordForm
impl UnwindSafe for RecordForm
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