pub struct BranchSlot {
pub group: usize,
pub parent: Option<usize>,
pub kind: Kind,
pub arg: String,
pub category: String,
pub added: bool,
}Expand description
Where one branch sits among the plural and select arguments of its message. Group numbers count the complex arguments of one message in pre-order, from 0 (added branches included), so a crate makes a document-wide group name from them and the message’s first unit id.
Fields§
§group: usizeThe complex argument the branch belongs to.
parent: Option<usize>The complex argument around that one, for a plural inside a select (or any nesting).
kind: KindPlural, selectordinal or select.
arg: StringThe argument name (count).
category: StringThe selector (one, =0, female).
added: boolA target category the source does not have, or a level inside such a branch.
Trait Implementations§
Source§impl Clone for BranchSlot
impl Clone for BranchSlot
Source§impl Debug for BranchSlot
impl Debug for BranchSlot
impl Eq for BranchSlot
Source§impl PartialEq for BranchSlot
impl PartialEq for BranchSlot
impl StructuralPartialEq for BranchSlot
Auto Trait Implementations§
impl Forget for BranchSlot
impl Freeze for BranchSlot
impl Move for BranchSlot
impl RefUnwindSafe for BranchSlot
impl Send for BranchSlot
impl Sync for BranchSlot
impl Unpin for BranchSlot
impl UnsafeUnpin for BranchSlot
impl UnwindSafe for BranchSlot
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