Struct ra_ap_hir_ty::display::HirFormatter [−][src]
pub struct HirFormatter<'a> { pub db: &'a dyn HirDatabase, // some fields omitted }
Fields
db: &'a dyn HirDatabase
Implementations
pub fn write_joined<T: HirDisplay>(
&mut self,
iter: impl IntoIterator<Item = T>,
sep: &str
) -> Result<(), HirDisplayError>
This allows using the write!
macro directly with a HirFormatter
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for HirFormatter<'a>
impl<'a> !Send for HirFormatter<'a>
impl<'a> !Sync for HirFormatter<'a>
impl<'a> Unpin for HirFormatter<'a>
impl<'a> !UnwindSafe for HirFormatter<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> Any for T where
T: Any,