Skip to main content

SafLogValue

Trait SafLogValue 

Source
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§

Source

fn fmt_saf_log(&self, buf: &mut String)

Append the DSL-formatted representation to buf.

Provided Methods§

Source

fn to_saf_log(&self) -> String

Convenience: format to a new String.

Implementations on Foreign Types§

Source§

impl SafLogValue for &str

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for bool

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for f64

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for i8

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for i16

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for i32

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for i64

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for isize

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for str

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for u8

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for u16

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for u32

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for u64

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for u128

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for usize

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for String

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl SafLogValue for Duration

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl<T: SafLogValue> SafLogValue for Option<T>

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl<T: SafLogValue> SafLogValue for [T]

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl<T: SafLogValue> SafLogValue for BTreeSet<T>

Source§

fn fmt_saf_log(&self, buf: &mut String)

Source§

impl<T: SafLogValue> SafLogValue for Vec<T>

Source§

fn fmt_saf_log(&self, buf: &mut String)

Implementors§

Source§

impl SafLogValue for SafRatio

Source§

impl<T: EntityId> SafLogValue for T

Blanket impl for all EntityId types (ValueId, LocId, etc.).

Source§

impl<T: SafLogValue> SafLogValue for PtsDelta<'_, T>

Source§

impl<T: SafLogValue> SafLogValue for SafPair<'_, T>