Struct fluent::types::FluentNumber
source · pub struct FluentNumber {
pub value: f64,
pub options: FluentNumberOptions,
}
Fields§
§value: f64
§options: FluentNumberOptions
Implementations§
source§impl FluentNumber
impl FluentNumber
pub const fn new(value: f64, options: FluentNumberOptions) -> FluentNumber
pub fn as_string(&self) -> Cow<'static, str>
Trait Implementations§
source§impl Clone for FluentNumber
impl Clone for FluentNumber
source§fn clone(&self) -> FluentNumber
fn clone(&self) -> FluentNumber
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FluentNumber
impl Debug for FluentNumber
source§impl From<&f32> for FluentNumber
impl From<&f32> for FluentNumber
source§fn from(n: &f32) -> FluentNumber
fn from(n: &f32) -> FluentNumber
Converts to this type from the input type.
source§impl From<&f64> for FluentNumber
impl From<&f64> for FluentNumber
source§fn from(n: &f64) -> FluentNumber
fn from(n: &f64) -> FluentNumber
Converts to this type from the input type.
source§impl From<&i128> for FluentNumber
impl From<&i128> for FluentNumber
source§fn from(n: &i128) -> FluentNumber
fn from(n: &i128) -> FluentNumber
Converts to this type from the input type.
source§impl From<&i16> for FluentNumber
impl From<&i16> for FluentNumber
source§fn from(n: &i16) -> FluentNumber
fn from(n: &i16) -> FluentNumber
Converts to this type from the input type.
source§impl From<&i32> for FluentNumber
impl From<&i32> for FluentNumber
source§fn from(n: &i32) -> FluentNumber
fn from(n: &i32) -> FluentNumber
Converts to this type from the input type.
source§impl From<&i64> for FluentNumber
impl From<&i64> for FluentNumber
source§fn from(n: &i64) -> FluentNumber
fn from(n: &i64) -> FluentNumber
Converts to this type from the input type.
source§impl From<&i8> for FluentNumber
impl From<&i8> for FluentNumber
source§fn from(n: &i8) -> FluentNumber
fn from(n: &i8) -> FluentNumber
Converts to this type from the input type.
source§impl From<&isize> for FluentNumber
impl From<&isize> for FluentNumber
source§fn from(n: &isize) -> FluentNumber
fn from(n: &isize) -> FluentNumber
Converts to this type from the input type.
source§impl From<&u128> for FluentNumber
impl From<&u128> for FluentNumber
source§fn from(n: &u128) -> FluentNumber
fn from(n: &u128) -> FluentNumber
Converts to this type from the input type.
source§impl From<&u16> for FluentNumber
impl From<&u16> for FluentNumber
source§fn from(n: &u16) -> FluentNumber
fn from(n: &u16) -> FluentNumber
Converts to this type from the input type.
source§impl From<&u32> for FluentNumber
impl From<&u32> for FluentNumber
source§fn from(n: &u32) -> FluentNumber
fn from(n: &u32) -> FluentNumber
Converts to this type from the input type.
source§impl From<&u64> for FluentNumber
impl From<&u64> for FluentNumber
source§fn from(n: &u64) -> FluentNumber
fn from(n: &u64) -> FluentNumber
Converts to this type from the input type.
source§impl From<&u8> for FluentNumber
impl From<&u8> for FluentNumber
source§fn from(n: &u8) -> FluentNumber
fn from(n: &u8) -> FluentNumber
Converts to this type from the input type.
source§impl From<&usize> for FluentNumber
impl From<&usize> for FluentNumber
source§fn from(n: &usize) -> FluentNumber
fn from(n: &usize) -> FluentNumber
Converts to this type from the input type.
source§impl<'l> From<FluentNumber> for FluentValue<'l>
impl<'l> From<FluentNumber> for FluentValue<'l>
source§fn from(input: FluentNumber) -> FluentValue<'l>
fn from(input: FluentNumber) -> FluentValue<'l>
Converts to this type from the input type.
source§impl From<f32> for FluentNumber
impl From<f32> for FluentNumber
source§fn from(n: f32) -> FluentNumber
fn from(n: f32) -> FluentNumber
Converts to this type from the input type.
source§impl From<f64> for FluentNumber
impl From<f64> for FluentNumber
source§fn from(n: f64) -> FluentNumber
fn from(n: f64) -> FluentNumber
Converts to this type from the input type.
source§impl From<i128> for FluentNumber
impl From<i128> for FluentNumber
source§fn from(n: i128) -> FluentNumber
fn from(n: i128) -> FluentNumber
Converts to this type from the input type.
source§impl From<i16> for FluentNumber
impl From<i16> for FluentNumber
source§fn from(n: i16) -> FluentNumber
fn from(n: i16) -> FluentNumber
Converts to this type from the input type.
source§impl From<i32> for FluentNumber
impl From<i32> for FluentNumber
source§fn from(n: i32) -> FluentNumber
fn from(n: i32) -> FluentNumber
Converts to this type from the input type.
source§impl From<i64> for FluentNumber
impl From<i64> for FluentNumber
source§fn from(n: i64) -> FluentNumber
fn from(n: i64) -> FluentNumber
Converts to this type from the input type.
source§impl From<i8> for FluentNumber
impl From<i8> for FluentNumber
source§fn from(n: i8) -> FluentNumber
fn from(n: i8) -> FluentNumber
Converts to this type from the input type.
source§impl From<isize> for FluentNumber
impl From<isize> for FluentNumber
source§fn from(n: isize) -> FluentNumber
fn from(n: isize) -> FluentNumber
Converts to this type from the input type.
source§impl From<u128> for FluentNumber
impl From<u128> for FluentNumber
source§fn from(n: u128) -> FluentNumber
fn from(n: u128) -> FluentNumber
Converts to this type from the input type.
source§impl From<u16> for FluentNumber
impl From<u16> for FluentNumber
source§fn from(n: u16) -> FluentNumber
fn from(n: u16) -> FluentNumber
Converts to this type from the input type.
source§impl From<u32> for FluentNumber
impl From<u32> for FluentNumber
source§fn from(n: u32) -> FluentNumber
fn from(n: u32) -> FluentNumber
Converts to this type from the input type.
source§impl From<u64> for FluentNumber
impl From<u64> for FluentNumber
source§fn from(n: u64) -> FluentNumber
fn from(n: u64) -> FluentNumber
Converts to this type from the input type.
source§impl From<u8> for FluentNumber
impl From<u8> for FluentNumber
source§fn from(n: u8) -> FluentNumber
fn from(n: u8) -> FluentNumber
Converts to this type from the input type.
source§impl From<usize> for FluentNumber
impl From<usize> for FluentNumber
source§fn from(n: usize) -> FluentNumber
fn from(n: usize) -> FluentNumber
Converts to this type from the input type.
source§impl FromStr for FluentNumber
impl FromStr for FluentNumber
§type Err = ParseFloatError
type Err = ParseFloatError
The associated error which can be returned from parsing.
source§fn from_str(input: &str) -> Result<FluentNumber, <FluentNumber as FromStr>::Err>
fn from_str(input: &str) -> Result<FluentNumber, <FluentNumber as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl PartialEq for FluentNumber
impl PartialEq for FluentNumber
source§fn eq(&self, other: &FluentNumber) -> bool
fn eq(&self, other: &FluentNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FluentNumber
Auto Trait Implementations§
impl Freeze for FluentNumber
impl RefUnwindSafe for FluentNumber
impl Send for FluentNumber
impl Sync for FluentNumber
impl Unpin for FluentNumber
impl UnwindSafe for FluentNumber
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more