pub enum StructShape {
Ctor {
name: String,
arity: u32,
},
Proj {
field_index: u32,
},
Other,
}Expand description
Represents the shape of a structure expression for comparison.
Variants§
Ctor
A constructor applied to n arguments.
Proj
A projection of field i from an expression.
Other
Any other expression shape.
Implementations§
Source§impl StructShape
impl StructShape
Trait Implementations§
Source§impl Clone for StructShape
impl Clone for StructShape
Source§fn clone(&self) -> StructShape
fn clone(&self) -> StructShape
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 moreSource§impl Debug for StructShape
impl Debug for StructShape
Source§impl PartialEq for StructShape
impl PartialEq for StructShape
impl Eq for StructShape
impl StructuralPartialEq for StructShape
Auto Trait Implementations§
impl Freeze for StructShape
impl RefUnwindSafe for StructShape
impl Send for StructShape
impl Sync for StructShape
impl Unpin for StructShape
impl UnsafeUnpin for StructShape
impl UnwindSafe for StructShape
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