localize_it 2.5.2

Simple and fast library for localization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::utils::aliases::SynError;
use proc_macro2::Ident;

pub struct LocaleVariantPositionError;

impl LocaleVariantPositionError {
    pub fn new(argument: Ident) -> SynError {
        SynError::new(
            argument.span(),
            "Locale variants must be placed before named arguments",
        )
    }
}