Struct timecat::utils::io_utils::CustomDebug
source · 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 copy of the value. Read more
1.0.0 · source§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§fn cmp(&self, other: &CustomDebug<T>) -> Ordering
fn cmp(&self, other: &CustomDebug<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬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