Struct libspa_sys::spa_i18n_methods
source · #[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 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 spa_i18n_methods
impl Debug for spa_i18n_methods
source§impl PartialEq for spa_i18n_methods
impl PartialEq for spa_i18n_methods
source§fn eq(&self, other: &spa_i18n_methods) -> bool
fn eq(&self, other: &spa_i18n_methods) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_i18n_methods
impl Eq for spa_i18n_methods
impl StructuralPartialEq for spa_i18n_methods
Auto Trait Implementations§
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