#[non_exhaustive]pub struct Profile {
pub name: &'static str,
pub version: u32,
}Expand description
A named profile and its version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strIts name ("locos").
version: u32Its version.
Implementations§
Source§impl Profile
impl Profile
Sourcepub fn reads(&self, version: u32) -> bool
pub fn reads(&self, version: u32) -> bool
True when this release can produce version version of the profile (the current one or an older one it
still replays).
Sourcepub fn extract_options(&self) -> ExtractOptions
pub fn extract_options(&self) -> ExtractOptions
Extraction options with this profile switched on.
Sourcepub fn merge_options(&self, format: &str) -> MergeOptions
pub fn merge_options(&self, format: &str) -> MergeOptions
The merge options this profile uses for a document of format (a filter id). Localization OS: UTF-8 out,
except for the formats it writes in their own encoding (ini, strings, dxf, txt, properties, xaml, resjson, ttx,
txml, txlf, html, xslt, hhc, hhk, hhp, rc, plist, csv, tsv and xtg: Keep), and the target language
stamped and plurals filled even when nothing is translated (lead decision 11-04).
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Forget for Profile
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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