pub struct Modulo(pub Value);Expand description
An incomplete AST representation of a plural rule. Comprises a Value but is later expressed as % usize.
§Examples
All AST nodes can be built explicitly, as seen in the example. However, due to its complexity, it is preferred to build the AST using the parse_plural_rule function.
"% 100"Will be used to represent the AST:
use cldr_pluralrules_parser::ast::*;
Modulo(Value(100));Tuple Fields§
§0: ValueTrait Implementations§
impl StructuralPartialEq for Modulo
Auto Trait Implementations§
impl Freeze for Modulo
impl RefUnwindSafe for Modulo
impl Send for Modulo
impl Sync for Modulo
impl Unpin for Modulo
impl UnwindSafe for Modulo
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