pub struct ArbFile { /* private fields */ }
Expand description
Content of an application resource bundle file.
Implementations§
Source§impl ArbFile
impl ArbFile
Sourcepub fn insert_translation<'a>(&mut self, key: &ArbKey<'a>, text: String)
pub fn insert_translation<'a>(&mut self, key: &ArbKey<'a>, text: String)
Insert a translated value.
Sourcepub fn shift_insert_translation<'a>(
&mut self,
index: usize,
key: &ArbKey<'a>,
text: String,
)
pub fn shift_insert_translation<'a>( &mut self, index: usize, key: &ArbKey<'a>, text: String, )
Shift insert a translated value.
Sourcepub fn insert_entry<'a>(&mut self, entry: ArbEntry<'a>)
pub fn insert_entry<'a>(&mut self, entry: ArbEntry<'a>)
Insert an entry.
Sourcepub fn placeholders<'a>(
&self,
key: &ArbKey<'a>,
) -> Result<Option<Placeholders<'_>>>
pub fn placeholders<'a>( &self, key: &ArbKey<'a>, ) -> Result<Option<Placeholders<'_>>>
Attempt to locate the placeholder names for a key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArbFile
impl<'de> Deserialize<'de> for ArbFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ArbFile
impl RefUnwindSafe for ArbFile
impl Send for ArbFile
impl Sync for ArbFile
impl Unpin for ArbFile
impl UnwindSafe for ArbFile
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