use fluent_syntax::ast::InlineExpression; use std::error::Error;
/// Maps an [`InlineExpression`] into the kind of reference, with owned strings /// that identify the expression. This makes it so that the [`InlineExpression`] can /// be used to generate an error string. #[derive(Clone, Debug, Eq, PartialEq)] pubenum ReferenceKind {
Function {
id: String,
},
Message {
id: String,
attribute: Option<String>,
},
Term {
id: String,
attribute: Option<String>,
},
Variable {
id: String,
},
}
/// Errors generated during the process of resolving a fluent message into a string. /// This process takes place in the `write` method of the `WriteValue` trait. #[derive(Clone, Debug, Eq, PartialEq)] pubenum ResolverError {
Reference(ReferenceKind),
NoValue(String),
MissingDefault,
Cyclic,
TooManyPlaceables,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.