pub struct TypeDisplay<'a, L> { /* private fields */ }Expand description
A type rendered for display; see Types::display.
§Examples
use typeck_lang::{TypeId, Types};
use intern_lang::Interner;
let names = Interner::new();
let types = Types::new();
assert_eq!(types.display(TypeId::ERROR, &names).to_string(), "{error}");Trait Implementations§
Auto Trait Implementations§
impl<'a, L> Freeze for TypeDisplay<'a, L>
impl<'a, L> RefUnwindSafe for TypeDisplay<'a, L>where
&'a L: RefUnwindSafe,
impl<'a, L> Send for TypeDisplay<'a, L>
impl<'a, L> Sync for TypeDisplay<'a, L>
impl<'a, L> Unpin for TypeDisplay<'a, L>
impl<'a, L> UnsafeUnpin for TypeDisplay<'a, L>where
&'a L: UnsafeUnpin,
impl<'a, L> UnwindSafe for TypeDisplay<'a, L>where
&'a L: 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