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§
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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.