pub enum Part {
Item,
Key,
Entry,
Tuple(usize),
Field(usize),
Payload {
constructor: usize,
part: usize,
},
}Expand description
A part of an aggregate value, as a Spelling is asked about it.
Variants§
Item
An item of a list or a set.
Key
A key of a dictionary.
Entry
A value of a dictionary.
Tuple(usize)
The tuple part at this position.
Field(usize)
The record field at this position, in declaration order.
Payload
The payload part part of the constructor numbered constructor.
Trait Implementations§
impl Copy for Part
impl Eq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Forget for Part
impl Freeze for Part
impl Move for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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