pub struct TypePattern {
pub annotations: Vec<Annotation>,
pub ty: Type,
pub name: Option<Ident>,
pub span: Span,
}Expand description
A type pattern: Type name or just Type.
Fields§
§annotations: Vec<Annotation>§ty: Type§name: Option<Ident>§span: SpanTrait Implementations§
Source§impl Clone for TypePattern
impl Clone for TypePattern
Source§fn clone(&self) -> TypePattern
fn clone(&self) -> TypePattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypePattern
impl Debug for TypePattern
Source§impl Hash for TypePattern
impl Hash for TypePattern
Source§impl PartialEq for TypePattern
impl PartialEq for TypePattern
Source§fn eq(&self, other: &TypePattern) -> bool
fn eq(&self, other: &TypePattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TypePattern
impl StructuralPartialEq for TypePattern
Auto Trait Implementations§
impl Freeze for TypePattern
impl RefUnwindSafe for TypePattern
impl Send for TypePattern
impl Sync for TypePattern
impl Unpin for TypePattern
impl UnsafeUnpin for TypePattern
impl UnwindSafe for TypePattern
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