Skip to main content

DebugStructExt

Trait DebugStructExt 

Source
trait DebugStructExt<'a, 'b> {
    // Required methods
    fn h2_field_if(
        &mut self,
        name: &str,
        val: &bool,
    ) -> &mut DebugStruct<'a, 'b>;
    fn h2_field_if_then<T: Debug>(
        &mut self,
        name: &str,
        cond: bool,
        val: &T,
    ) -> &mut DebugStruct<'a, 'b>;
    fn h2_field_some<T: Debug>(
        &mut self,
        name: &str,
        val: &Option<T>,
    ) -> &mut DebugStruct<'a, 'b>;
}

Required Methods§

Source

fn h2_field_if(&mut self, name: &str, val: &bool) -> &mut DebugStruct<'a, 'b>

Source

fn h2_field_if_then<T: Debug>( &mut self, name: &str, cond: bool, val: &T, ) -> &mut DebugStruct<'a, 'b>

Source

fn h2_field_some<T: Debug>( &mut self, name: &str, val: &Option<T>, ) -> &mut DebugStruct<'a, 'b>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, 'b> DebugStructExt<'a, 'b> for DebugStruct<'a, 'b>

Source§

fn h2_field_if(&mut self, name: &str, val: &bool) -> &mut DebugStruct<'a, 'b>

Source§

fn h2_field_if_then<T: Debug>( &mut self, name: &str, cond: bool, val: &T, ) -> &mut DebugStruct<'a, 'b>

Source§

fn h2_field_some<T: Debug>( &mut self, name: &str, val: &Option<T>, ) -> &mut DebugStruct<'a, 'b>

Implementors§