pub struct TypePredicate {
pub asserts: bool,
pub target: TypePredicateTarget,
pub type_id: Option<TypeId>,
pub parameter_index: Option<usize>,
}Expand description
Type predicate information (x is T / asserts x is T).
Fields§
§asserts: bool§target: TypePredicateTarget§type_id: Option<TypeId>§parameter_index: Option<usize>Trait Implementations§
Source§impl Clone for TypePredicate
impl Clone for TypePredicate
Source§fn clone(&self) -> TypePredicate
fn clone(&self) -> TypePredicate
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 TypePredicate
impl Debug for TypePredicate
Source§impl Hash for TypePredicate
impl Hash for TypePredicate
Source§impl PartialEq for TypePredicate
impl PartialEq for TypePredicate
impl Eq for TypePredicate
impl StructuralPartialEq for TypePredicate
Auto Trait Implementations§
impl Freeze for TypePredicate
impl RefUnwindSafe for TypePredicate
impl Send for TypePredicate
impl Sync for TypePredicate
impl Unpin for TypePredicate
impl UnsafeUnpin for TypePredicate
impl UnwindSafe for TypePredicate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.