willdo 0.0.1

Task manager with DAG
Documentation
pub struct DebugHide<T>(T, Box<str>);

impl<T: core::ops::Deref> core::ops::Deref for DebugHide<T> {
    type Target = T;
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl<T: core::ops::Deref> core::ops::DerefMut for DebugHide<T> {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl<T> DebugHide<T> {
    pub fn new(hidden: T, description: impl Into<Box<str>>) -> Self {
        Self(hidden, description.into())
    }
}
impl<T> From<T> for DebugHide<T> {
    fn from(value: T) -> Self {
        DebugHide(value, "...".into())
    }
}
impl<T> AsRef<T> for DebugHide<T> {
    fn as_ref(&self) -> &T {
        &self.0
    }
}
impl<T> AsMut<T> for DebugHide<T> {
    fn as_mut(&mut self) -> &mut T {
        &mut self.0
    }
}
impl<T> core::fmt::Debug for DebugHide<T> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        f.write_str(&self.1)
    }
}