Enum fluent::types::FluentValue [] [src]

pub enum FluentValue {
    String(String),
    Number(f32),
}

Value types which can be formatted to a String.

Variants

Fluent String type.

Fluent Number type.

Methods

impl FluentValue
[src]

[src]

[src]

Trait Implementations

impl Clone for FluentValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FluentValue
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for FluentValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<String> for FluentValue
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for FluentValue
[src]

[src]

Performs the conversion.

impl From<f32> for FluentValue
[src]

[src]

Performs the conversion.

impl From<i8> for FluentValue
[src]

[src]

Performs the conversion.