Enum fluent::types::FluentValue
[−]
[src]
pub enum FluentValue { String(String), Number(f32), }
Value types which can be formatted to a String.
Variants
String(String)
Fluent String type.
Number(f32)
Fluent Number type.
Methods
impl FluentValue
[src]
fn format(&self, _ctx: &MessageContext) -> String
[src]
fn matches(&self, ctx: &MessageContext, other: &FluentValue) -> bool
[src]
Trait Implementations
impl Clone for FluentValue
[src]
fn clone(&self) -> FluentValue
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FluentValue
[src]
impl PartialEq for FluentValue
[src]
fn eq(&self, __arg_0: &FluentValue) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FluentValue) -> bool
[src]
This method tests for !=
.