pub struct CustomDebug<T> { /* private fields */ }Implementations§
Source§impl<T> CustomDebug<T>
impl<T> CustomDebug<T>
pub fn new(item: T, debug_message_func: fn(&T) -> String) -> Self
pub fn get_debug_message_func(&self) -> &fn(&T) -> String
pub fn get_debug_message(&self) -> String
pub fn into_inner(&self) -> &T
pub fn into_inner_mut(&mut self) -> &mut T
Trait Implementations§
Source§impl<T: Clone> Clone for CustomDebug<T>
impl<T: Clone> Clone for CustomDebug<T>
Source§fn clone(&self) -> CustomDebug<T>
fn clone(&self) -> CustomDebug<T>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for CustomDebug<T>
impl<T: Debug> Debug for CustomDebug<T>
Source§impl<T> Deref for CustomDebug<T>
impl<T> Deref for CustomDebug<T>
Source§impl<T> DerefMut for CustomDebug<T>
impl<T> DerefMut for CustomDebug<T>
Source§impl<T: Debug> From<T> for CustomDebug<T>
impl<T: Debug> From<T> for CustomDebug<T>
Source§impl<T: Hash> Hash for CustomDebug<T>
impl<T: Hash> Hash for CustomDebug<T>
Source§impl<T: Ord> Ord for CustomDebug<T>
impl<T: Ord> Ord for CustomDebug<T>
Source§impl<T: PartialEq> PartialEq for CustomDebug<T>
impl<T: PartialEq> PartialEq for CustomDebug<T>
Source§impl<T: PartialOrd> PartialOrd for CustomDebug<T>
impl<T: PartialOrd> PartialOrd for CustomDebug<T>
impl<T: Eq> Eq for CustomDebug<T>
impl<T> StructuralPartialEq for CustomDebug<T>
Auto Trait Implementations§
impl<T> Freeze for CustomDebug<T>where
T: Freeze,
impl<T> RefUnwindSafe for CustomDebug<T>where
T: RefUnwindSafe,
impl<T> Send for CustomDebug<T>where
T: Send,
impl<T> Sync for CustomDebug<T>where
T: Sync,
impl<T> Unpin for CustomDebug<T>where
T: Unpin,
impl<T> UnwindSafe for CustomDebug<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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