pub struct TypeUse<'a, T> {
pub index: Option<Index<'a>>,
pub inline: Option<T>,
}
Expand description
A reference to a type defined in this module.
Fields§
§index: Option<Index<'a>>
The type that we’re referencing, if it was present.
inline: Option<T>
The inline type, if present.
Implementations§
Trait Implementations§
source§impl<'a> From<TypeUse<'a, FunctionTypeNoNames<'a>>> for TypeUse<'a, FunctionType<'a>>
impl<'a> From<TypeUse<'a, FunctionTypeNoNames<'a>>> for TypeUse<'a, FunctionType<'a>>
source§fn from(
src: TypeUse<'a, FunctionTypeNoNames<'a>>
) -> TypeUse<'a, FunctionType<'a>>
fn from( src: TypeUse<'a, FunctionTypeNoNames<'a>> ) -> TypeUse<'a, FunctionType<'a>>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> Freeze for TypeUse<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for TypeUse<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TypeUse<'a, T>where
T: Send,
impl<'a, T> Sync for TypeUse<'a, T>where
T: Sync,
impl<'a, T> Unpin for TypeUse<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for TypeUse<'a, T>where
T: UnwindSafe,
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