CatalogCompiler
struct · ferroui-protranslate-build · v0.5.0
struct CatalogCompiler
Framework-independent compiler usable in build scripts, editors and CI tools.
Members
new
fn new() -> Self
notify_properties
fn notify_properties(self: &mut Self, enabled: bool) -> &mut Self
Emit the native INotifyPropertyChanged contract for typed property bindings.
The consuming crate must depend on ferroui-system when enabled.
add_catalog
fn add_catalog(self: &mut Self, catalog: CatalogInput) -> &mut Self
add_key_list
fn add_key_list(self: &mut Self, name: impl Into<String>, content: impl Into<String>) -> &mut Self
Blank lines and lines beginning with # are ignored, like upstream key lists.
add_usage
fn add_usage(self: &mut Self, usage: KeyUsage) -> &mut Self
Validate a resolved key reference; callers with semantic information can use this instead of the explicitly scoped Rust syntax scanner.
add_rust_source
fn add_rust_source(self: &mut Self, name: &str, source: &str, options: &SourceAnalysisOptions) -> &mut Self
Analyze only the receivers selected in options; unrelated .format calls
are never treated as localization calls merely because the name matches.
compile
fn compile(self: &Self) -> Compilation
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.