pub enum CaseKind {
Name,
Hidden,
Subjective,
Objective,
PossessiveDeterminer,
PossessivePronoun,
Reflexive,
}Expand description
The pronoun/inflection case requested before or in place of the noun
(the case capture group: `, =, @, ~, %, ?, or none/*).
Variants§
Name
No case marker (or the * “mark this word as the Ranting element”
marker, which doesn’t change how the noun itself renders): render
the noun’s own name via Ranting::inflect().
Hidden
? marker: subject in inflection, but neither the variable nor its
leading space is displayed.
Subjective
=: subjective pronoun (“he”/“they”/…).
Objective
@: objective pronoun (“him”/“them”/…).
PossessiveDeterminer
`: possessive determiner (“his”/“their”/…).
PossessivePronoun
~: possessive pronoun (“his”/“theirs”/…).
Reflexive
%: reflexive (“himself”/“themselves”/…).
Implementations§
Source§impl CaseKind
impl CaseKind
Sourcepub const fn from_marker(marker: &str) -> CaseKind
pub const fn from_marker(marker: &str) -> CaseKind
Maps a parsed case capture-group string to its typed form. Used
only by ranting_derive when baking a PlaceholderSpec literal
from the PH_EXT regex capture.
Trait Implementations§
impl Copy for CaseKind
impl Eq for CaseKind
Source§impl From<CaseKind> for GrammaticalCase
impl From<CaseKind> for GrammaticalCase
impl StructuralPartialEq for CaseKind
Auto Trait Implementations§
impl Freeze for CaseKind
impl RefUnwindSafe for CaseKind
impl Send for CaseKind
impl Sync for CaseKind
impl Unpin for CaseKind
impl UnsafeUnpin for CaseKind
impl UnwindSafe for CaseKind
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