pub struct TypePredicateAnnotation {
pub param: Ident,
pub asserted: TypeAnnotation,
pub span: Span,
}Expand description
Surface form of <param> is <T>. Only valid at a function return-type position.
Fields§
§param: Ident§asserted: TypeAnnotation§span: SpanTrait Implementations§
Source§impl Clone for TypePredicateAnnotation
impl Clone for TypePredicateAnnotation
Source§impl Debug for TypePredicateAnnotation
impl Debug for TypePredicateAnnotation
Source§impl PartialEq for TypePredicateAnnotation
impl PartialEq for TypePredicateAnnotation
impl StructuralPartialEq for TypePredicateAnnotation
Auto Trait Implementations§
impl Freeze for TypePredicateAnnotation
impl RefUnwindSafe for TypePredicateAnnotation
impl Send for TypePredicateAnnotation
impl Sync for TypePredicateAnnotation
impl Unpin for TypePredicateAnnotation
impl UnsafeUnpin for TypePredicateAnnotation
impl UnwindSafe for TypePredicateAnnotation
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