[][src]Struct casual_logger::Table

pub struct Table { /* fields omitted */ }

TOML table included in the log file. The form is not validated.
However, if "Log::set_opt(Opt::BeginnersSupport)" is set,
it will intervene with some automatic correction.
ログファイルに含まれるTOMLテーブル。書式の妥当性検証はしません。
ただし、"Log::set_opt(Opt::BeginnersSupport)" が設定されている場合は、
ある程度の自動修正で介入します。

Implementations

impl Table[src]

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.
テーブル。

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 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 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 isize<'a>(&'a mut self, key: &'a str, value: isize) -> &'a mut Self[src]

Insert pointer size integer value.
符号付きポインター・サイズ整数を挿入します。

Arguments

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

Returns

Table.
テーブル。

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 sub_t<'a>(
    &'a mut self,
    base_name: &str,
    sub_table: &Table
) -> &'a mut Self
[src]

Insert table recursively.
テーブルを再帰的に挿入します。

Arguments

  • base_name - Sub table name.
    サブ・テーブル名。
  • table - Sub table.
    サブ・テーブル。

Returns

Main table.
メインの方のテーブル。

pub fn sub_aot<'a>(
    &'a mut self,
    base_name: &str,
    aot: &ArrayOfTable
) -> &'a mut Self
[src]

Insert array of table recursively.
テーブルの配列を再帰的に挿入します。

Arguments

  • base_name - Array of table name.
    テーブルの配列名。
  • table - Array of table.
    テーブルの配列。

Returns

Main 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 usize<'a>(&'a mut self, key: &'a str, value: usize) -> &'a mut Self[src]

Insert unsigned pointer size integer 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.