pub struct NamedTy {
pub matching_source: Fragment,
pub name: Path,
pub generic_tys: Vec<Type>,
}
Available on crate feature
ast-models
only.Expand description
A named type (such as a reference to a type from the standard libarary or a user defined struct).
i.e. MyType<Generics>
Fields§
§matching_source: Fragment
The matching source code of the type signature.
name: Path
The name/identifier of the type.
generic_tys: Vec<Type>
An ordered series of generic type parameters passed to it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NamedTy
impl RefUnwindSafe for NamedTy
impl Send for NamedTy
impl Sync for NamedTy
impl Unpin for NamedTy
impl UnwindSafe for NamedTy
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more