pub enum PredicateSignatureKind {
Function(FunctionShapeId),
Callable(CallableShapeId),
Union(Vec<TypeId>),
Intersection(Vec<TypeId>),
None,
}Expand description
Classification for type predicate signature extraction. Used by control flow analysis to extract predicate signatures from callable types.
Variants§
Function(FunctionShapeId)
Function type - has type_predicate and params in function shape
Callable(CallableShapeId)
Callable type - check call_signatures for predicate
Union(Vec<TypeId>)
Union - search members for predicate
Intersection(Vec<TypeId>)
Intersection - search members for predicate
None
No predicate available
Trait Implementations§
Source§impl Clone for PredicateSignatureKind
impl Clone for PredicateSignatureKind
Source§fn clone(&self) -> PredicateSignatureKind
fn clone(&self) -> PredicateSignatureKind
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 PredicateSignatureKind
impl RefUnwindSafe for PredicateSignatureKind
impl Send for PredicateSignatureKind
impl Sync for PredicateSignatureKind
impl Unpin for PredicateSignatureKind
impl UnsafeUnpin for PredicateSignatureKind
impl UnwindSafe for PredicateSignatureKind
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