pub struct Brief<'a, T: DebugBriefly> { /* private fields */ }Implementations§
Source§impl<'a, T: DebugBriefly> Brief<'a, T>
impl<'a, T: DebugBriefly> Brief<'a, T>
Sourcepub fn new(data: &'a T) -> Self
pub fn new(data: &'a T) -> Self
Wraps the data within Brief type to make it to be printed concisely.
Sourcepub fn hide_known(&mut self, files: &AbstractFiles) -> &mut Self
pub fn hide_known(&mut self, files: &AbstractFiles) -> &mut Self
Hides known libraries.
pub fn starts_with_then_show_detail<'i, I>(
&mut self,
starts_with: I,
) -> &mut Selfwhere
I: IntoIterator<Item = &'i str>,
pub fn starts_with_then_hide<'i, I>(&mut self, starts_with: I) -> &mut Selfwhere
I: IntoIterator<Item = &'i str>,
pub fn contains_then_show_detail<'i, I>(&mut self, contains: I) -> &mut Selfwhere
I: IntoIterator<Item = &'i str>,
pub fn contains_then_hide<'i, I>(&mut self, contains: I) -> &mut Selfwhere
I: IntoIterator<Item = &'i str>,
pub fn is_item_of_then_show_detail<'i, I>(&mut self, item_names: I) -> &mut Selfwhere
I: IntoIterator<Item = &'i str>,
pub fn is_item_of_then_hide<'i, I>(&mut self, item_names: I) -> &mut Selfwhere
I: IntoIterator<Item = &'i str>,
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Brief<'a, T>
impl<'a, T> RefUnwindSafe for Brief<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Brief<'a, T>where
T: Sync,
impl<'a, T> Sync for Brief<'a, T>where
T: Sync,
impl<'a, T> Unpin for Brief<'a, T>
impl<'a, T> UnsafeUnpin for Brief<'a, T>
impl<'a, T> UnwindSafe for Brief<'a, T>where
T: RefUnwindSafe,
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
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