pub enum EncodeError {
UnsupportedType,
KeyIsNotString,
MissingElements,
}
👎Deprecated: Look at https://github.com/projectfluent/fluent-rs instead.
Expand description
Errors that occur encoding environment data into something the L20n resources can use.
Variants§
UnsupportedType
👎Deprecated: Look at https://github.com/projectfluent/fluent-rs instead.
Type is not usable in L20n.
KeyIsNotString
👎Deprecated: Look at https://github.com/projectfluent/fluent-rs instead.
Maps in L20n require keys to be Strings.
MissingElements
👎Deprecated: Look at https://github.com/projectfluent/fluent-rs instead.
A map element is missing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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