pub enum InterfaceMergeKind {
Callable(CallableShapeId),
Object(ObjectShapeId),
ObjectWithIndex(ObjectShapeId),
Intersection,
Other,
}Expand description
Classification for types when merging interfaces.
This enum provides a structured way to handle interface type merging,
abstracting away the internal TypeData representation. Used for merging
derived and base interface types.
Variants§
Callable(CallableShapeId)
Callable type with call/construct signatures and properties
Object(ObjectShapeId)
Object type with properties only
ObjectWithIndex(ObjectShapeId)
Object type with properties and index signatures
Intersection
Intersection type - create intersection with base
Other
Other type kinds - return derived unchanged
Trait Implementations§
Source§impl Clone for InterfaceMergeKind
impl Clone for InterfaceMergeKind
Source§fn clone(&self) -> InterfaceMergeKind
fn clone(&self) -> InterfaceMergeKind
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 InterfaceMergeKind
impl RefUnwindSafe for InterfaceMergeKind
impl Send for InterfaceMergeKind
impl Sync for InterfaceMergeKind
impl Unpin for InterfaceMergeKind
impl UnsafeUnpin for InterfaceMergeKind
impl UnwindSafe for InterfaceMergeKind
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