Struct message_format::icu::ast::SelectFormat [] [src]

pub struct SelectFormat {
    // some fields omitted
}

Using a value, select the appropriate message and format it.

Methods

impl SelectFormat

fn new(variable_name: &str, default: Message) -> Self

Construct a SelectFormat.

fn map(&mut self, value: &str, message: Message)

Map a value for a particular message.

fn lookup_message(&self, value: &str) -> &Message

Given a value, determine which Message to use.

Trait Implementations

impl MessagePart for SelectFormat

fn apply_format<'f>(&self, ctx: &Context, stream: &mut Write, args: Option<&Args<'f>>) -> Result

Derived Implementations

impl Debug for SelectFormat

fn fmt(&self, __arg_0: &mut Formatter) -> Result