pub struct HirDisplayWrapper<'a, 'db, T> {
db: &'db dyn HirDatabase,
t: &'a T,
max_size: Option<usize>,
limited_size: Option<usize>,
omit_verbose_types: bool,
closure_style: ClosureStyle,
display_kind: DisplayKind,
display_target: DisplayTarget,
show_container_bounds: bool,
render_private_fields: bool,
display_lifetimes: DisplayLifetime,
}Fields§
§db: &'db dyn HirDatabase§t: &'a T§max_size: Option<usize>§limited_size: Option<usize>§omit_verbose_types: bool§closure_style: ClosureStyle§display_kind: DisplayKind§display_target: DisplayTarget§show_container_bounds: bool§render_private_fields: bool§display_lifetimes: DisplayLifetimeImplementations§
Source§impl<'db, T: HirDisplay<'db>> HirDisplayWrapper<'_, 'db, T>
impl<'db, T: HirDisplay<'db>> HirDisplayWrapper<'_, 'db, T>
pub fn write_to<F: HirWrite>(&self, f: &mut F) -> Result
pub fn with_closure_style(self, c: ClosureStyle) -> Self
pub fn with_lifetime_display(self, l: DisplayLifetime) -> Self
pub fn with_private_fields(self, render: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'db, T> Freeze for HirDisplayWrapper<'a, 'db, T>
impl<'a, 'db, T> !RefUnwindSafe for HirDisplayWrapper<'a, 'db, T>
impl<'a, 'db, T> !Send for HirDisplayWrapper<'a, 'db, T>
impl<'a, 'db, T> !Sync for HirDisplayWrapper<'a, 'db, T>
impl<'a, 'db, T> Unpin for HirDisplayWrapper<'a, 'db, T>
impl<'a, 'db, T> UnsafeUnpin for HirDisplayWrapper<'a, 'db, T>
impl<'a, 'db, T> !UnwindSafe for HirDisplayWrapper<'a, 'db, T>
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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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