[][src]Struct casual_logger::Table

pub struct Table { /* fields omitted */ }

TOML table included in the log file. Do not validate.

Implementations

impl Table[src]

pub fn format_str_value(value: &str) -> String[src]

👎 Deprecated since 0.4.1:

This is private method

Deprecated.
廃止。

pub fn literal<'a>(&'a mut self, key: &'a str, value: &str) -> &'a mut Self[src]

Insert literal string value. Do not put in quotes.
リテラル文字列を挿入します。引用符で挟みません。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

pub fn str<'a>(&'a mut self, key: &'a str, value: &str) -> &'a mut Self[src]

Insert string value.
文字列を挿入します。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

pub fn char<'a>(&'a mut self, key: &'a str, value: char) -> &'a mut Self[src]

Insert character value.
文字を挿入します。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

pub fn int<'a>(&'a mut self, key: &'a str, value: i128) -> &'a mut Self[src]

Insert integer value.
符号付き整数を挿入します。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

pub fn uint<'a>(&'a mut self, key: &'a str, value: u128) -> &'a mut Self[src]

Insert unsigned integer value.
符号無し整数を挿入します。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

pub fn float<'a>(&'a mut self, key: &'a str, value: f64) -> &'a mut Self[src]

Insert float value.
浮動小数点数を挿入します。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

pub fn bool<'a>(&'a mut self, key: &'a str, value: bool) -> &'a mut Self[src]

Insert boolean value.
真理値を挿入します。

Arguments

  • key - A key.
    キー。
  • value - A value.
    値。

Returns

Table.
テーブル。

Trait Implementations

impl Clone for Table[src]

impl Default for Table[src]

Auto Trait Implementations

impl RefUnwindSafe for Table

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl UnwindSafe for Table

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.