pub enum PropertyCollectionResult {
Any,
NonObject,
Properties {
properties: Vec<PropertyInfo>,
string_index: Option<IndexSignature>,
number_index: Option<IndexSignature>,
},
}Expand description
Result of collecting properties from an intersection type.
Variants§
Any
The intersection contains any, making the entire type any
NonObject
The intersection contains only non-object types (never, unknown, primitives, etc.)
Properties
The intersection contains object properties
Fields
§
properties: Vec<PropertyInfo>§
string_index: Option<IndexSignature>§
number_index: Option<IndexSignature>Trait Implementations§
Source§impl Clone for PropertyCollectionResult
impl Clone for PropertyCollectionResult
Source§fn clone(&self) -> PropertyCollectionResult
fn clone(&self) -> PropertyCollectionResult
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 PropertyCollectionResult
impl Debug for PropertyCollectionResult
Source§impl PartialEq for PropertyCollectionResult
impl PartialEq for PropertyCollectionResult
impl StructuralPartialEq for PropertyCollectionResult
Auto Trait Implementations§
impl Freeze for PropertyCollectionResult
impl RefUnwindSafe for PropertyCollectionResult
impl Send for PropertyCollectionResult
impl Sync for PropertyCollectionResult
impl Unpin for PropertyCollectionResult
impl UnsafeUnpin for PropertyCollectionResult
impl UnwindSafe for PropertyCollectionResult
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