pub trait SafLogValue {
// Required method
fn fmt_saf_log(&self, buf: &mut String);
// Provided method
fn to_saf_log(&self) -> String { ... }
}Expand description
Trait for formatting values into the SAF log DSL output.
Required Methods§
Sourcefn fmt_saf_log(&self, buf: &mut String)
fn fmt_saf_log(&self, buf: &mut String)
Append the DSL-formatted representation to buf.
Provided Methods§
Sourcefn to_saf_log(&self) -> String
fn to_saf_log(&self) -> String
Convenience: format to a new String.
Implementations on Foreign Types§
Source§impl SafLogValue for &str
impl SafLogValue for &str
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for bool
impl SafLogValue for bool
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for f64
impl SafLogValue for f64
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for i8
impl SafLogValue for i8
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for i16
impl SafLogValue for i16
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for i32
impl SafLogValue for i32
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for i64
impl SafLogValue for i64
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for isize
impl SafLogValue for isize
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for str
impl SafLogValue for str
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for u8
impl SafLogValue for u8
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for u16
impl SafLogValue for u16
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for u32
impl SafLogValue for u32
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for u64
impl SafLogValue for u64
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for u128
impl SafLogValue for u128
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for usize
impl SafLogValue for usize
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for String
impl SafLogValue for String
fn fmt_saf_log(&self, buf: &mut String)
Source§impl SafLogValue for Duration
impl SafLogValue for Duration
fn fmt_saf_log(&self, buf: &mut String)
Source§impl<T: SafLogValue> SafLogValue for Option<T>
impl<T: SafLogValue> SafLogValue for Option<T>
fn fmt_saf_log(&self, buf: &mut String)
Source§impl<T: SafLogValue> SafLogValue for [T]
impl<T: SafLogValue> SafLogValue for [T]
fn fmt_saf_log(&self, buf: &mut String)
Source§impl<T: SafLogValue> SafLogValue for BTreeSet<T>
impl<T: SafLogValue> SafLogValue for BTreeSet<T>
fn fmt_saf_log(&self, buf: &mut String)
Source§impl<T: SafLogValue> SafLogValue for Vec<T>
impl<T: SafLogValue> SafLogValue for Vec<T>
fn fmt_saf_log(&self, buf: &mut String)
Implementors§
impl SafLogValue for SafRatio
impl<T: EntityId> SafLogValue for T
Blanket impl for all EntityId types (ValueId, LocId, etc.).