#[non_exhaustive]pub enum CatalogFileFormat {
Po,
Fcl,
}Available on crate feature
catalog only.Expand description
File format used by disk-based catalog combine operations.
This enum is non-exhaustive because Ferrocat can add additional catalog file formats over time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Po
Classic gettext PO catalog files, including gettext template (.pot) files.
Fcl
Ferrocat Catalog Lines (.fcl) files.
Implementations§
Source§impl CatalogFileFormat
impl CatalogFileFormat
Sourcepub fn infer_from_path(path: &Path) -> Result<Self, ApiError>
pub fn infer_from_path(path: &Path) -> Result<Self, ApiError>
Infers a catalog file format from a path extension.
Supported path suffixes are .po, .pot, and .fcl.
§Errors
Returns ApiError::Unsupported when the path suffix does not map to a
supported catalog file format.
Trait Implementations§
Source§impl Clone for CatalogFileFormat
impl Clone for CatalogFileFormat
Source§fn clone(&self) -> CatalogFileFormat
fn clone(&self) -> CatalogFileFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CatalogFileFormat
Source§impl Debug for CatalogFileFormat
impl Debug for CatalogFileFormat
Source§impl Default for CatalogFileFormat
impl Default for CatalogFileFormat
Source§fn default() -> CatalogFileFormat
fn default() -> CatalogFileFormat
Returns the “default value” for a type. Read more
impl Eq for CatalogFileFormat
Source§impl PartialEq for CatalogFileFormat
impl PartialEq for CatalogFileFormat
Source§fn eq(&self, other: &CatalogFileFormat) -> bool
fn eq(&self, other: &CatalogFileFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CatalogFileFormat
Auto Trait Implementations§
impl Freeze for CatalogFileFormat
impl RefUnwindSafe for CatalogFileFormat
impl Send for CatalogFileFormat
impl Sync for CatalogFileFormat
impl Unpin for CatalogFileFormat
impl UnsafeUnpin for CatalogFileFormat
impl UnwindSafe for CatalogFileFormat
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