Struct rust_icu_uformattable::UFormattable [−][src]
pub struct UFormattable<'a> { /* fields omitted */ }
Implementations
impl<'a> UFormattable<'a>
[src]
impl<'a> UFormattable<'a>
[src]pub fn try_new<'b>() -> Result<UFormattable<'b>, Error>
[src]
pub fn try_new<'b>() -> Result<UFormattable<'b>, Error>
[src]Initialize a crate::UFormattable to type UNUM_LONG
, value 0 may
return error.
Implements ufmt_open
.
pub fn as_ptr(&self) -> *const UFormattable
[src]
pub fn is_numeric(&self) -> bool
[src]
pub fn is_numeric(&self) -> bool
[src]Returns true
if this formattable is numeric.
Implements ufmt_isNumeric
pub fn get_type(&self) -> Result<UFormattableType, Error>
[src]
pub fn get_type(&self) -> Result<UFormattableType, Error>
[src]Implements $impl_function_name
Use UFormattable::get_type to verify that the type matches.
pub fn get_date(&self) -> Result<UDate, Error>
[src]
pub fn get_date(&self) -> Result<UDate, Error>
[src]Implements $impl_function_name
Use UFormattable::get_type to verify that the type matches.
pub fn get_double(&self) -> Result<f64, Error>
[src]
pub fn get_double(&self) -> Result<f64, Error>
[src]Implements $impl_function_name
Use UFormattable::get_type to verify that the type matches.
pub fn get_i32(&self) -> Result<i32, Error>
[src]
pub fn get_i32(&self) -> Result<i32, Error>
[src]Implements $impl_function_name
Use UFormattable::get_type to verify that the type matches.
pub fn get_i64(&self) -> Result<i64, Error>
[src]
pub fn get_i64(&self) -> Result<i64, Error>
[src]Implements $impl_function_name
Use UFormattable::get_type to verify that the type matches.
pub fn get_array_length(&self) -> Result<i32, Error>
[src]
pub fn get_array_length(&self) -> Result<i32, Error>
[src]Implements $impl_function_name
Use UFormattable::get_type to verify that the type matches.
pub fn get_ustring(&self) -> Result<UChar, Error>
[src]
pub fn get_array_item_by_index(
&'a self,
index: i32
) -> Result<UFormattable<'a>, Error>
[src]
pub fn get_array_item_by_index(
&'a self,
index: i32
) -> Result<UFormattable<'a>, Error>
[src]Use UFormattable::get_type to ensure that this formattable is an array before using this method. Otherwise you will get an error. The lifetime of the resulting formattable is tied to this one.
Implements ufmt_getArrayItemByIndex
pub fn get_dec_num_chars(&self) -> Result<String, Error>
[src]
pub fn get_dec_num_chars(&self) -> Result<String, Error>
[src]Implements ufmt_getDecNumChars
Trait Implementations
impl<'a> Debug for UFormattable<'a>
[src]
impl<'a> Debug for UFormattable<'a>
[src]impl<'a> Drop for UFormattable<'a>
[src]
impl<'a> Drop for UFormattable<'a>
[src]