#[repr(C)]pub struct spa_i18n_methods {
pub version: u32,
pub text: Option<unsafe extern "C" fn(object: *mut c_void, msgid: *const c_char) -> *const c_char>,
pub ntext: Option<unsafe extern "C" fn(object: *mut c_void, msgid: *const c_char, msgid_plural: *const c_char, n: c_ulong) -> *const c_char>,
}
Fields§
§version: u32
§text: Option<unsafe extern "C" fn(object: *mut c_void, msgid: *const c_char) -> *const c_char>
Translate a message
\param object the i18n interface \param msgid the message \return a translated message
ntext: Option<unsafe extern "C" fn(object: *mut c_void, msgid: *const c_char, msgid_plural: *const c_char, n: c_ulong) -> *const c_char>
Translate a message for a number
\param object the i18n interface \param msgid the message to translate \param msgid_plural the plural form of \a msgid \param n a number \return a translated message for the number \a n
Trait Implementations§
Source§impl Clone for spa_i18n_methods
impl Clone for spa_i18n_methods
Source§fn clone(&self) -> spa_i18n_methods
fn clone(&self) -> spa_i18n_methods
Returns a duplicate 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 spa_i18n_methods
impl Debug for spa_i18n_methods
Source§impl PartialEq for spa_i18n_methods
impl PartialEq for spa_i18n_methods
impl Copy for spa_i18n_methods
impl Eq for spa_i18n_methods
impl StructuralPartialEq for spa_i18n_methods
Auto Trait Implementations§
impl Freeze for spa_i18n_methods
impl RefUnwindSafe for spa_i18n_methods
impl Send for spa_i18n_methods
impl Sync for spa_i18n_methods
impl Unpin for spa_i18n_methods
impl UnwindSafe for spa_i18n_methods
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