pub enum AugmentationTargetKind {
Object(ObjectShapeId),
ObjectWithIndex(ObjectShapeId),
Callable(CallableShapeId),
Other,
}Expand description
Classification for augmentation operations on types.
Similar to InterfaceMergeKind but specifically for module augmentation
where we merge additional properties into an existing type.
Variants§
Object(ObjectShapeId)
Object type - merge properties directly
ObjectWithIndex(ObjectShapeId)
Object with index signatures - preserve index signatures when merging
Callable(CallableShapeId)
Callable type - merge properties while preserving signatures
Other
Other type - create new object with augmentation members
Trait Implementations§
Source§impl Clone for AugmentationTargetKind
impl Clone for AugmentationTargetKind
Source§fn clone(&self) -> AugmentationTargetKind
fn clone(&self) -> AugmentationTargetKind
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 AugmentationTargetKind
impl RefUnwindSafe for AugmentationTargetKind
impl Send for AugmentationTargetKind
impl Sync for AugmentationTargetKind
impl Unpin for AugmentationTargetKind
impl UnsafeUnpin for AugmentationTargetKind
impl UnwindSafe for AugmentationTargetKind
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