qtranslation

Struct QTranslater

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

Implementations§

Source§

impl QTranslater

Source

pub fn init(&mut self, folder_path: String)

Trait Implementations§

Source§

impl Default for QTranslater

Source§

fn default() -> QTranslater

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

impl QObject for QTranslater

Source§

fn meta_object(&self) -> *const QMetaObject

Returns a pointer to a meta object
Source§

fn static_meta_object() -> *const QMetaObject

Returns a pointer to a meta object
Source§

fn get_cpp_object(&self) -> *mut c_void

return a C++ pointer to the QObject* (can be null if not yet initialized)
Source§

unsafe fn get_from_cpp<'pinned_ref>( ptr: *mut c_void, ) -> QObjectPinned<'pinned_ref, Self>

Return a rust object belonging to a C++ object
Source§

unsafe fn cpp_construct(pinned: &RefCell<Self>) -> *mut c_void

Construct the C++ Object. Read more
Source§

unsafe fn qml_construct( pinned: &RefCell<Self>, mem: *mut c_void, extra_destruct: extern "C" fn(_: *mut c_void), )

Construct the C++ Object, suitable for callbacks to construct QML objects.
Source§

fn cpp_size() -> usize

Return the size of the C++ object
Source§

fn get_object_description() -> &'static QObjectDescriptor
where Self: Sized,

Returns a QObjectDescriptor for this type

Auto Trait Implementations§

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, 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.