Expand description
A reference to a type defined in this module.
Fields
index: Option<ItemRef<'a, type>>
The type that we’re referencing, if it was present.
inline: Option<T>
The inline type, if present.
Implementations
sourceimpl<'a, T> TypeUse<'a, T>
impl<'a, T> TypeUse<'a, T>
sourcepub fn new_with_index(idx: Index<'a>) -> TypeUse<'a, T>
pub fn new_with_index(idx: Index<'a>) -> TypeUse<'a, T>
Constructs a new instance of TypeUse
without an inline definition but
with an index specified.
Trait Implementations
sourceimpl<'a> From<TypeUse<'a, FunctionTypeNoNames<'a>>> for TypeUse<'a, FunctionType<'a>>
impl<'a> From<TypeUse<'a, FunctionTypeNoNames<'a>>> for TypeUse<'a, FunctionType<'a>>
sourcefn from(
src: TypeUse<'a, FunctionTypeNoNames<'a>>
) -> TypeUse<'a, FunctionType<'a>>
fn from(
src: TypeUse<'a, FunctionTypeNoNames<'a>>
) -> TypeUse<'a, FunctionType<'a>>
Performs the conversion.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more