pub enum ExcessPropertiesKind {
Object(ObjectShapeId),
ObjectWithIndex(ObjectShapeId),
Union(Vec<TypeId>),
Intersection(Vec<TypeId>),
NotObject,
}Expand description
Classification for checking excess properties.
Variants§
Object(ObjectShapeId)
Object type (without index signature) - check for excess
ObjectWithIndex(ObjectShapeId)
Object with index signature - accepts any property
Union(Vec<TypeId>)
Union - check all members
Intersection(Vec<TypeId>)
Intersection - merge known members from all object constituents
NotObject
Not an object type
Trait Implementations§
Source§impl Clone for ExcessPropertiesKind
impl Clone for ExcessPropertiesKind
Source§fn clone(&self) -> ExcessPropertiesKind
fn clone(&self) -> ExcessPropertiesKind
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 ExcessPropertiesKind
impl RefUnwindSafe for ExcessPropertiesKind
impl Send for ExcessPropertiesKind
impl Sync for ExcessPropertiesKind
impl Unpin for ExcessPropertiesKind
impl UnsafeUnpin for ExcessPropertiesKind
impl UnwindSafe for ExcessPropertiesKind
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