Generic Type Method

list(memberStyle:type:width:)

Creates a list format style using the provided format style and list style. リスト書式設定スタイルをこの提供された書式設定スタイルとリストスタイルを使って作成します。

Declaration 宣言

static func list<MemberStyle, Base>(memberStyle: MemberStyle, type: ListFormatStyle<MemberStyle, Base>.ListType, width: ListFormatStyle<MemberStyle, Base>.Width = .standard) -> ListFormatStyle<MemberStyle, Base> where MemberStyle : FormatStyle, Base : Sequence, MemberStyle.FormatInput == Base.Element, MemberStyle.FormatOutput == String

Parameters パラメータ

memberStyle

The FormatStyle applied to elements of the Sequence. Sequenceの要素それらに適用されるFormatStyle

type

The type of the list. リストの型。

width

The width of the list. リストの幅。

Return Value 戻り値

A list format style using the specified member style, type, and width. この指定されたメンバースタイル、型、そして幅を使っているリスト書式設定スタイル。

See Also 参照

Formatting a Measurement ある寸法を書式設定する