Data

Struct Data 

Source
pub struct Data { /* private fields */ }

Implementations§

Source§

impl Data

Source

pub fn new() -> Self

Source

pub fn from_ptr(ptr: *const fmx_Data) -> Self

Source

pub fn is_empty(&self) -> bool

Source

pub fn is_valid(&self) -> bool

Source

pub fn clear(&mut self, new_type: DataType)

Source

pub fn is_find_reqeust(&self) -> bool

Source

pub fn get_as_number(&self) -> FixPt

Source

pub fn get_as_text(&self) -> Text

Source

pub fn get_as_date(&self) -> DateTime

Source

pub fn get_as_time(&self) -> DateTime

Source

pub fn get_as_timestamp(&self) -> DateTime

Source

pub fn get_as_boolean(&self) -> bool

Source

pub fn get_as_binary(&self) -> BinaryData

Source

pub fn get_locale(&self) -> Locale

Source

pub fn set_as_text<T: ToText>(&mut self, text: T)

Source

pub fn set_as_text_with_locale<T: ToText>(&mut self, text: T, locale: Locale)

Source

pub fn set_as_number<T: ToFixPt>(&mut self, number: T)

Source

pub fn set_as_date(&mut self, datetime: DateTime)

Source

pub fn set_as_time(&mut self, datetime: DateTime)

Source

pub fn set_as_timestamp(&mut self, datetime: DateTime)

Source

pub fn set_datetime( &mut self, datetime: DateTime, datetime_type: DataType, native_type: DataType, )

Source

pub fn set_binarydata(&mut self, binary_data: BinaryData, force_type: bool)

Source

pub fn get_data_type(&self) -> DataType

Source

pub fn get_font_id<T: ToText>(&self, font_name: T, env: &ExprEnv) -> fmx_fontid

Source

pub fn font_exists<T: ToText>( &self, font_id: fmx_fontid, font_name: T, env: &ExprEnv, ) -> bool

Source

pub fn convert(&mut self, native_type: DataType)

Trait Implementations§

Source§

impl Default for Data

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for Data

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Data

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<&Data> for i32

Source§

fn from(data: &Data) -> i32

Converts to this type from the input type.
Source§

impl From<Data> for String

Source§

fn from(data: Data) -> String

Converts to this type from the input type.
Source§

impl From<Data> for i32

Source§

fn from(data: Data) -> i32

Converts to this type from the input type.
Source§

impl ToFixPt for Data

Source§

impl ToText for Data

Source§

fn to_text(self) -> Text

Auto Trait Implementations§

§

impl Freeze for Data

§

impl RefUnwindSafe for Data

§

impl !Send for Data

§

impl !Sync for Data

§

impl Unpin for Data

§

impl UnwindSafe for Data

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.