pub struct RedactedCount { /* private fields */ }Expand description
A count with a unit, rendered as <N unit> — <28 chars>,
<2048 bytes>.
This is the shared piece for a type that describes its content
rather than hiding it entirely (hyprforge-clipboard’s Content,
which says Text(<28 chars>) or Image(image/png, <2048 bytes>)
rather than nothing at all). Secret<T>’s own Debug is built out
of the same formatting, so there is exactly one implementation of “a
redacted count looks like this” in the workspace, even though hiding
entirely and describing-with-a-count are different policies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedactedCount
impl RefUnwindSafe for RedactedCount
impl Send for RedactedCount
impl Sync for RedactedCount
impl Unpin for RedactedCount
impl UnsafeUnpin for RedactedCount
impl UnwindSafe for RedactedCount
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