pub struct RedactedArgv { /* private fields */ }Expand description
A redacted argv rendering that is safe for a single-line text log.
Implementations§
Source§impl RedactedArgv
impl RedactedArgv
Sourcepub const fn as_log_safe_text(&self) -> &LogSafeText<'static>
pub const fn as_log_safe_text(&self) -> &LogSafeText<'static>
Borrows the already escaped diagnostic representation.
The returned text is safe to append through
crate::DiagnosticLogBuilder::push_safe. Callers remain responsible
for applying any enclosing output budget.
Trait Implementations§
Source§impl Clone for RedactedArgv
impl Clone for RedactedArgv
Source§fn clone(&self) -> RedactedArgv
fn clone(&self) -> RedactedArgv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedactedArgv
impl Debug for RedactedArgv
Source§impl Display for RedactedArgv
impl Display for RedactedArgv
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Writes the complete escaped argv rendering.
§Parameters
formatter- Destination formatting context.
§Returns
The formatter result from writing the complete rendering.
§Errors
Returns fmt::Error when the destination formatter rejects output.
impl Eq for RedactedArgv
Source§impl PartialEq for RedactedArgv
impl PartialEq for RedactedArgv
impl StructuralPartialEq for RedactedArgv
Auto Trait Implementations§
impl Freeze for RedactedArgv
impl RefUnwindSafe for RedactedArgv
impl Send for RedactedArgv
impl Sync for RedactedArgv
impl Unpin for RedactedArgv
impl UnsafeUnpin for RedactedArgv
impl UnwindSafe for RedactedArgv
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